Class NavigationButton


  • public class NavigationButton
    extends Object
    UI navigation button.
    • Method Detail

      • 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)
      • getPopup

        public Map<String,​Runnable> getPopup()
        Map of key-value pairs for setting the popup menu
      • 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object