Class BasicCommandButtonUI

    • Field Detail

      • commandButton

        protected JCommandButton commandButton
        The associated command button.
      • propertyChangeListener

        private java.beans.PropertyChangeListener propertyChangeListener
        Property change listener.
      • commandPropertyChangeListener

        private java.beans.PropertyChangeListener commandPropertyChangeListener
      • basicPopupButtonListener

        private BasicCommandButtonListener basicPopupButtonListener
        Tracks user interaction with the command button (including keyboard and mouse).
      • actionPreviewChangeListener

        private javax.swing.event.ChangeListener actionPreviewChangeListener
      • focusListener

        private java.awt.event.FocusListener focusListener
      • isInnerFocusOnAction

        protected boolean isInnerFocusOnAction
      • text

        protected java.lang.String text
      • extraText

        protected java.lang.String extraText
      • disposePopupsActionListener

        private CommandAction disposePopupsActionListener
        This listener disposes all popup panels when button's action is activated. An example of scenario would be a command button in the popup panel of an in-ribbon gallery. When this command button is activated, the associated popup panel is dismissed.
        See Also:
        DO_NOT_DISPOSE_POPUPS
      • popupActionListener

        private PopupActionListener popupActionListener
        Action listener on the popup area.
      • popupIcon

        protected RadianceIcon popupIcon
        The popup indicator icon.
    • Constructor Detail

      • BasicCommandButtonUI

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

      • installUI

        public void installUI​(javax.swing.JComponent c)
        Overrides:
        installUI in class javax.swing.plaf.ComponentUI
      • uninstallUI

        public void uninstallUI​(javax.swing.JComponent c)
        Overrides:
        uninstallUI in class javax.swing.plaf.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​(java.awt.Graphics g,
                           javax.swing.JComponent c)
        Overrides:
        update in class javax.swing.plaf.ComponentUI
      • updateIconDimension

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

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

        public java.awt.Dimension getPreferredSize​(javax.swing.JComponent c)
        Overrides:
        getPreferredSize in class javax.swing.plaf.ComponentUI
      • 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()
      • syncInitialInnerFocus

        private void syncInitialInnerFocus()
      • toggleInnerFocus

        private void toggleInnerFocus()