Class PluginToggleButton

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants

public class PluginToggleButton extends JToggleButton
A toggle button component for enabling/disabling plugins.

PluginToggleButton displays as a styled on/off switch used in the plugin list. When selected (on), the plugin is enabled; when deselected (off), the plugin is disabled. The button uses Storm's brand purple color when enabled.

The button can display conflict information in its tooltip, warning users when enabling a plugin would conflict with other plugins.

See Also:
  • Constructor Details

    • PluginToggleButton

      public PluginToggleButton()
      Creates a new plugin toggle button in the off state.
  • Method Details

    • setConflicts

      public void setConflicts(List<String> conflicts)
      Sets the list of conflicting plugins to display in the tooltip.

      When conflicts are set, the tooltip will include a message listing the conflicting plugin names.

      Parameters:
      conflicts - a list of conflicting plugin names, or null/empty for no conflicts