Enum CPanelPopup.MenuBehavior
- All Implemented Interfaces:
Serializable,Comparable<CPanelPopup.MenuBehavior>,java.lang.constant.Constable
- Enclosing class:
CPanelPopup
Tells how a
CPanelPopup behaves if it is a child
of a menu.- Author:
- Benjamin Sigg
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionthe action shows a decorated dialog if triggeredthe action remains invisiblethe action pushes the custom component on aJMenuthe action shows an undecorated dialog if triggered -
Method Summary
Modifier and TypeMethodDescriptionstatic CPanelPopup.MenuBehaviorReturns the enum constant of this type with the specified name.static CPanelPopup.MenuBehavior[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HIDE
the action remains invisible -
SUBMENU
the action pushes the custom component on aJMenu -
UNDECORATED_DIALOG
the action shows an undecorated dialog if triggered -
DECORATED_DIALOG
the action shows a decorated dialog if triggered
-
-
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 nameNullPointerException- if the argument is null
-