java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
com.inductiveautomation.ignition.client.util.gui.IconButton
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants
Direct Known Subclasses:
BrowsePropertiesButton, BrowseTagsButton, ReloadIconButton

public class IconButton extends JLabel
Simple label based button made to work with a VectorIcon whose color is set to null (and thus inherits the component's foreground color) in order to provide rollover indication.
See Also:
  • Constructor Details

  • Method Details

    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class JComponent
    • onPress

      protected void onPress(MouseEvent e)
      If you don't specify a handler in the constructor, then you can override this instead
    • setColor

      public void setColor(Color color)
    • setDisabledColor

      public void setDisabledColor(Color disabledColor)
    • setHoverColor

      public void setHoverColor(Color hoverColor)