Package net.runelite.client.ui
Class NavigationButton
- java.lang.Object
-
- net.runelite.client.ui.NavigationButton
-
public class NavigationButton extends Object
UI navigation button.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NavigationButton.NavigationButtonBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NavigationButton.NavigationButtonBuilder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
BufferedImage
getIcon()
Icon of button.Runnable
getOnClick()
On click action of the button.Runnable
getOnSelect()
On select action of the button.PluginPanel
getPanel()
Plugin panel, used when expanding and contracting sidebar.Map<String,Runnable>
getPopup()
Map of key-value pairs for setting the popup menuint
getPriority()
The order in which the button should be displayed in the side bar.String
getTooltip()
Tooltip to show when hovered.int
hashCode()
boolean
isSelected()
Button selection stateboolean
isTab()
If the button is tab or notvoid
setOnClick(Runnable onClick)
On click action of the button.void
setOnSelect(Runnable onSelect)
On select action of the button.void
setPanel(PluginPanel panel)
Plugin panel, used when expanding and contracting sidebar.void
setPopup(Map<String,Runnable> popup)
Map of key-value pairs for setting the popup menuvoid
setPriority(int priority)
The order in which the button should be displayed in the side bar.void
setSelected(boolean selected)
Button selection statevoid
setTab(boolean tab)
If the button is tab or notString
toString()
-
-
-
Method Detail
-
builder
public static NavigationButton.NavigationButtonBuilder builder()
-
getIcon
public BufferedImage getIcon()
Icon of button.
-
isTab
public boolean isTab()
If the button is tab or not
-
getTooltip
public String getTooltip()
Tooltip to show when hovered.
-
isSelected
public boolean isSelected()
Button selection state
-
getOnClick
public Runnable getOnClick()
On click action of the button.
-
getOnSelect
public Runnable getOnSelect()
On select action of the button.
-
getPanel
public PluginPanel getPanel()
Plugin panel, used when expanding and contracting sidebar.
-
getPriority
public int getPriority()
The order in which the button should be displayed in the side bar. (from lower to higher)
-
setTab
public void setTab(boolean tab)
If the button is tab or not
-
setSelected
public void setSelected(boolean selected)
Button selection state
-
setOnClick
public void setOnClick(Runnable onClick)
On click action of the button.
-
setOnSelect
public void setOnSelect(Runnable onSelect)
On select action of the button.
-
setPanel
public void setPanel(PluginPanel panel)
Plugin panel, used when expanding and contracting sidebar.
-
setPriority
public void setPriority(int priority)
The order in which the button should be displayed in the side bar. (from lower to higher)
-
setPopup
public void setPopup(Map<String,Runnable> popup)
Map of key-value pairs for setting the popup menu
-
canEqual
protected boolean canEqual(Object other)
-
-