Enum CommandButtonLayoutManager.CommandButtonKind

java.lang.Object
java.lang.Enum<CommandButtonLayoutManager.CommandButtonKind>
org.pushingpixels.radiance.component.api.common.CommandButtonLayoutManager.CommandButtonKind
All Implemented Interfaces:
Serializable, Comparable<CommandButtonLayoutManager.CommandButtonKind>
Enclosing interface:
CommandButtonLayoutManager

public static enum CommandButtonLayoutManager.CommandButtonKind extends Enum<CommandButtonLayoutManager.CommandButtonKind>
Enumerates the available command button kinds.
  • Enum Constant Details

  • Field Details

    • hasAction

      private final boolean hasAction
      true if the command button kind has an action.
    • hasPopup

      private final boolean hasPopup
      true if the command button kind has a popup.
  • Constructor Details

    • CommandButtonKind

      private CommandButtonKind(boolean hasAction, boolean hasPopup)
      Constructs a new command button kind.
      Parameters:
      hasAction - Indicates whether the command button kind has an action.
      hasPopup - Indicates whether the command button kind has a popup.
  • Method Details

    • values

      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • hasAction

      public boolean hasAction()
      Returns indication whether this command button kind has an action.
      Returns:
      true if the command button kind has an action, false otherwise.
    • hasPopup

      public boolean hasPopup()
      Returns indication whether this command button kind has a popup.
      Returns:
      true if the command button kind has a popup, false otherwise.