Class CommandButtonPresentationState



  • public abstract class CommandButtonPresentationState
    extends java.lang.Object
    Presentation state for command buttons. This class provides a number of core presentation states, and it is possible to create additional custom states by using the protected constructor and implementing the relevant abstract methods.
    • Constructor Detail

      • CommandButtonPresentationState

        protected CommandButtonPresentationState​(java.lang.String displayName,
                                                 int preferredIconSize)
        Creates a new element state.
        Parameters:
        displayName - Display name.
        preferredIconSize - Preferred icon size.
    • Method Detail

      • createLayoutManager

        public abstract CommandButtonLayoutManager createLayoutManager​(JCommandButton commandButton)
        Creates a layout manager for the specified button.
        Parameters:
        commandButton - Command button.
        Returns:
        A layout manager for the specified button.
      • toString

        public java.lang.String toString​()
        Overrides:
        toString in class java.lang.Object