Class ExtensionTitleBar

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ExtensionTitleBar extends JPanel
To be used in ExtensionManagerDialog - this class represents the title panel for an Extension, showing the Extension's title, along with optional controls for enabling/disabling, or installing/uninstalling/updating.
Since:
swing-extras 2.5
Author:
scorbo2
See Also:
  • Constructor Details

    • ExtensionTitleBar

      public ExtensionTitleBar(String title)
  • Method Details

    • setEnabledToggleAction

      public ExtensionTitleBar setEnabledToggleAction(AbstractAction action)
      Sets some action to execute when the enabled checkbox is selected or unselected. This implicitly makes the checkbox visible, if it wasn't already. You can supply null as the action, which hides the checkbox.
    • setInstallAction

      public ExtensionTitleBar setInstallAction(AbstractAction action)
      Sets some action to execute when the install button is pressed. This implicitly makes the button visible, if it wasn't already. You can supply null as the action, which hides the button.
    • setUninstallAction

      public ExtensionTitleBar setUninstallAction(AbstractAction action)
      Sets some action to execute when the uninstall button is pressed. This implicitly makes the button visible, if it wasn't already. You can supply null as the action, which hides the button.
    • setUpdateAction

      public ExtensionTitleBar setUpdateAction(AbstractAction action)
      Sets some action to execute when the update button is pressed. This implicitly makes the button visible, if it wasn't already. You can supply null as the action, which hides the button.
    • isAllowEnabled

      public boolean isAllowEnabled()
    • isAllowInstall

      public boolean isAllowInstall()
    • isAllowUninstall

      public boolean isAllowUninstall()
    • isAllowUpdate

      public boolean isAllowUpdate()
    • setExtensionEnabled

      public ExtensionTitleBar setExtensionEnabled(boolean enable)
    • isExtensionEnabled

      public boolean isExtensionEnabled()