Class BasicCommandButtonUI

Direct Known Subclasses:
BasicRibbonTaskToggleButtonUI, RadianceCommandButtonUI

public abstract class BasicCommandButtonUI extends CommandButtonUI
Basic UI for command button JCommandButton.
  • Field Details

  • Constructor Details

    • BasicCommandButtonUI

      protected BasicCommandButtonUI()
      Creates a new UI delegate.
  • Method Details

    • installUI

      public void installUI(JComponent c)
      Overrides:
      installUI in class ComponentUI
    • uninstallUI

      public void uninstallUI(JComponent c)
      Overrides:
      uninstallUI in class ComponentUI
    • installDefaults

      protected void installDefaults()
      Installs defaults on the associated command button.
    • updateBorder

      private void updateBorder()
    • installComponents

      protected void installComponents()
      Installs subcomponents on the associated command button.
    • installListeners

      protected void installListeners()
      Installs listeners on the associated command button.
    • createButtonListener

      protected BasicCommandButtonListener createButtonListener()
      Creates the button listener for the specified command button.
      Returns:
      The button listener for the specified command button.
    • installKeyboardActions

      protected void installKeyboardActions()
      Installs the keyboard actions on the associated command button.
    • uninstallDefaults

      protected void uninstallDefaults()
      Uninstalls defaults from the associated command button.
    • uninstallComponents

      protected void uninstallComponents()
      Uninstalls subcomponents from the associated command button.
    • uninstallListeners

      protected void uninstallListeners()
      Uninstalls listeners from the associated command button.
    • uninstallKeyboardActions

      protected void uninstallKeyboardActions()
      Uninstalls the keyboard actions from the associated command button.
    • update

      public void update(Graphics g, JComponent c)
      Overrides:
      update in class ComponentUI
    • updateIconDimension

      private void updateIconDimension()
      Updates the icon dimension.
    • updatePopupIcon

      protected void updatePopupIcon()
      Updates the popup indicator icon.
    • getPreferredSize

      public Dimension getPreferredSize(JComponent c)
      Overrides:
      getPreferredSize in class ComponentUI
    • getLayoutInfo

      Description copied from class: CommandButtonUI
      Returns the layout information for the associated button.
      Specified by:
      getLayoutInfo in class CommandButtonUI
      Returns:
      Layout information for the associated button.
    • getLayoutManager

      public CommandButtonLayoutManager getLayoutManager()
      Specified by:
      getLayoutManager in class CommandButtonUI
    • isPaintingSeparators

      protected boolean isPaintingSeparators()
      Returns indication whether the action-popup areas separator is painted.
      Returns:
      true if the action-popup areas separator is painted.
    • isPaintingBackground

      protected boolean isPaintingBackground()
      Returns indication whether the button background is painted.
      Returns:
      true if the button background is painted.
    • createPopupActionListener

      protected PopupActionListener createPopupActionListener()
      Creates the popup action listener for this command button.
      Returns:
      Popup action listener for this command button.
    • processPopupAction

      public void processPopupAction()
    • syncIconDimension

      private void syncIconDimension()
    • syncActionPreview

      private void syncActionPreview(BaseCommand<?> command, BaseCommand.CommandActionPreview actionPreview)
    • getActionKeyTipAnchorCenterPoint

      public Point getActionKeyTipAnchorCenterPoint()
      Specified by:
      getActionKeyTipAnchorCenterPoint in class CommandButtonUI
    • getPopupKeyTipAnchorCenterPoint

      public Point getPopupKeyTipAnchorCenterPoint()
      Specified by:
      getPopupKeyTipAnchorCenterPoint in class CommandButtonUI
    • syncInitialInnerFocus

      private void syncInitialInnerFocus()
    • toggleInnerFocus

      private void toggleInnerFocus()
    • isInnerFocusOnAction

      public boolean isInnerFocusOnAction()
      Specified by:
      isInnerFocusOnAction in class CommandButtonUI
    • setInnerFocusOnAction

      public void setInnerFocusOnAction(boolean innerFocusOnAction)
      Specified by:
      setInnerFocusOnAction in class CommandButtonUI