com.alee.laf.menu
Enum PopupMenuType

java.lang.Object
  extended by java.lang.Enum<PopupMenuType>
      extended by com.alee.laf.menu.PopupMenuType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PopupMenuType>

public enum PopupMenuType
extends java.lang.Enum<PopupMenuType>

This enumeration represents various popup menu types.

Author:
Mikle Garin

Enum Constant Summary
comboBoxMenu
          Popup menu displayed under a combobox.
customPopupMenu
          Custom user popup menu that can be opened anywhere.
menuBarMenu
          Popup menu displayed directly from the menubar.
menuBarSubMenu
          Popup menu displayed as a sub menu from another menu in menubar.
 
Method Summary
static PopupMenuType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PopupMenuType[] 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

menuBarMenu

public static final PopupMenuType menuBarMenu
Popup menu displayed directly from the menubar. In default styling such menus have a dropdown corner.


menuBarSubMenu

public static final PopupMenuType menuBarSubMenu
Popup menu displayed as a sub menu from another menu in menubar. In default styling such menus doesn't have dropdown corner.


comboBoxMenu

public static final PopupMenuType comboBoxMenu
Popup menu displayed under a combobox. In default styling such menus have a dropdown corner.


customPopupMenu

public static final PopupMenuType customPopupMenu
Custom user popup menu that can be opened anywhere. In default styling such menus have a dropdown corner.

Method Detail

values

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

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

valueOf

public static PopupMenuType 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