com.levigo.util.swing.menu
Enum MenuBuilder.ItemType

java.lang.Object
  extended by java.lang.Enum<MenuBuilder.ItemType>
      extended by com.levigo.util.swing.menu.MenuBuilder.ItemType
All Implemented Interfaces:
Serializable, Comparable<MenuBuilder.ItemType>
Enclosing interface:
MenuBuilder

public static enum MenuBuilder.ItemType
extends Enum<MenuBuilder.ItemType>


Enum Constant Summary
CHECKBOX
          Items of this type will be rendered as check boxes or toggle buttons.
DEFAULT
          The default item type is a simple menu entry triggering its action upon use without retaining any state.
RADIOBUTTON
          Items of this type will be rendered as radio buttons or toggle buttons.
 
Method Summary
static MenuBuilder.ItemType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MenuBuilder.ItemType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DEFAULT

public static final MenuBuilder.ItemType DEFAULT
The default item type is a simple menu entry triggering its action upon use without retaining any state.


CHECKBOX

public static final MenuBuilder.ItemType CHECKBOX
Items of this type will be rendered as check boxes or toggle buttons.


RADIOBUTTON

public static final MenuBuilder.ItemType RADIOBUTTON
Items of this type will be rendered as radio buttons or toggle buttons. Only one of the widgets within a group may be selected at a time.

Method Detail

values

public static MenuBuilder.ItemType[] 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 (MenuBuilder.ItemType c : MenuBuilder.ItemType.values())
    System.out.println(c);

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

valueOf

public static MenuBuilder.ItemType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.