Enum CommandButtonLayoutManager.CommandButtonKind

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ACTION_AND_POPUP_MAIN_ACTION
      Command button that has both action and popup areas, with the main text click activating the action.
      ACTION_AND_POPUP_MAIN_POPUP
      Command button that has both action and popup areas, with the main text click activating the popup.
      ACTION_ONLY
      Command button that has only action area.
      POPUP_ONLY
      Command button that has only popup area.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean hasAction
      true if the command button kind has an action.
      private boolean hasPopup
      true if the command button kind has a popup.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CommandButtonKind​(boolean hasAction, boolean hasPopup)
      Constructs a new command button kind.
    • Field Detail

      • 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 Detail

      • 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 Detail

      • values

        public static CommandButtonLayoutManager.CommandButtonKind[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CommandButtonLayoutManager.CommandButtonKind c : CommandButtonLayoutManager.CommandButtonKind.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CommandButtonLayoutManager.CommandButtonKind valueOf​(java.lang.String name)
        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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.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.