Class NavigationButton


  • public class NavigationButton
    extends java.lang.Object
    UI navigation button.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static NavigationButton.NavigationButtonBuilder builder()  
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.awt.image.BufferedImage getIcon()
      Icon of button.
      java.lang.Runnable getOnClick()
      On click action of the button.
      java.lang.Runnable getOnSelect()
      On select action of the button.
      PluginPanel getPanel()
      Plugin panel, used when expanding and contracting sidebar.
      java.util.Map<java.lang.String,​java.lang.Runnable> getPopup()
      Map of key-value pairs for setting the popup menu
      int getPriority()
      The order in which the button should be displayed in the side bar.
      java.lang.String getTooltip()
      Tooltip to show when hovered.
      int hashCode()  
      boolean isSelected()
      Button selection state
      boolean isTab()
      If the button is tab or not
      void setOnClick​(java.lang.Runnable onClick)
      On click action of the button.
      void setOnSelect​(java.lang.Runnable onSelect)
      On select action of the button.
      void setPanel​(PluginPanel panel)
      Plugin panel, used when expanding and contracting sidebar.
      void setPopup​(java.util.Map<java.lang.String,​java.lang.Runnable> popup)
      Map of key-value pairs for setting the popup menu
      void setPriority​(int priority)
      The order in which the button should be displayed in the side bar.
      void setSelected​(boolean selected)
      Button selection state
      void setTab​(boolean tab)
      If the button is tab or not
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getIcon

        public java.awt.image.BufferedImage getIcon()
        Icon of button.
      • isTab

        public boolean isTab()
        If the button is tab or not
      • getTooltip

        public java.lang.String getTooltip()
        Tooltip to show when hovered.
      • isSelected

        public boolean isSelected()
        Button selection state
      • getOnClick

        public java.lang.Runnable getOnClick()
        On click action of the button.
      • getOnSelect

        public java.lang.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 java.util.Map<java.lang.String,​java.lang.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​(java.lang.Runnable onClick)
        On click action of the button.
      • setOnSelect

        public void setOnSelect​(java.lang.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​(java.util.Map<java.lang.String,​java.lang.Runnable> popup)
        Map of key-value pairs for setting the popup menu
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object