Package net.runelite.client.ui
Class NavigationButton.NavigationButtonBuilder
- java.lang.Object
-
- net.runelite.client.ui.NavigationButton.NavigationButtonBuilder
-
- Enclosing class:
- NavigationButton
public static class NavigationButton.NavigationButtonBuilder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NavigationButton
build()
NavigationButton.NavigationButtonBuilder
icon(BufferedImage icon)
Icon of button.NavigationButton.NavigationButtonBuilder
onClick(Runnable onClick)
On click action of the button.NavigationButton.NavigationButtonBuilder
panel(PluginPanel panel)
Plugin panel, used when expanding and contracting sidebar.NavigationButton.NavigationButtonBuilder
popup(Map<String,Runnable> popup)
Map of key-value pairs for setting the popup menuNavigationButton.NavigationButtonBuilder
priority(int priority)
The order in which the button should be displayed in the side bar.NavigationButton.NavigationButtonBuilder
tooltip(String tooltip)
Tooltip to show when hovered.String
toString()
-
-
-
Method Detail
-
icon
public NavigationButton.NavigationButtonBuilder icon(BufferedImage icon)
Icon of button.- Returns:
this
.
-
tooltip
public NavigationButton.NavigationButtonBuilder tooltip(String tooltip)
Tooltip to show when hovered.- Returns:
this
.
-
onClick
public NavigationButton.NavigationButtonBuilder onClick(Runnable onClick)
On click action of the button.- Returns:
this
.
-
panel
public NavigationButton.NavigationButtonBuilder panel(PluginPanel panel)
Plugin panel, used when expanding and contracting sidebar.- Returns:
this
.
-
priority
public NavigationButton.NavigationButtonBuilder priority(int priority)
The order in which the button should be displayed in the side bar. (from lower to higher)- Returns:
this
.
-
popup
public NavigationButton.NavigationButtonBuilder popup(Map<String,Runnable> popup)
Map of key-value pairs for setting the popup menu- Returns:
this
.
-
build
public NavigationButton build()
-
-