com.alee.laf.menu
Enum PopupMenuWay

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

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

This enumeration represents default ways of displaying popup menu.

Author:
Mikle Garin

Enum Constant Summary
aboveEnd
          Displays popup menu above the invoker component starting at its trailing side.
aboveMiddle
          Displays popup menu above the invoker component at its middle.
aboveStart
          Displays popup menu above the invoker component starting at its leading side.
belowEnd
          Displays popup menu under the invoker component starting at its trailing side.
belowMiddle
          Displays popup menu under the invoker component at its middle.
belowStart
          Displays popup menu under the invoker component starting at its leading side.
 
Method Summary
 int getCornerSide()
          Returns corner side for this popup menu display location.
static PopupMenuWay valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PopupMenuWay[] 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

aboveStart

public static final PopupMenuWay aboveStart
Displays popup menu above the invoker component starting at its leading side.


aboveMiddle

public static final PopupMenuWay aboveMiddle
Displays popup menu above the invoker component at its middle.


aboveEnd

public static final PopupMenuWay aboveEnd
Displays popup menu above the invoker component starting at its trailing side.


belowStart

public static final PopupMenuWay belowStart
Displays popup menu under the invoker component starting at its leading side.


belowMiddle

public static final PopupMenuWay belowMiddle
Displays popup menu under the invoker component at its middle.


belowEnd

public static final PopupMenuWay belowEnd
Displays popup menu under the invoker component starting at its trailing side.

Method Detail

values

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

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

valueOf

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

getCornerSide

public int getCornerSide()
Returns corner side for this popup menu display location.

Returns:
corner side for this popup menu display location