bibliothek.gui.dock.common.action
Enum CPanelPopup.ButtonBehavior

java.lang.Object
  extended by java.lang.Enum<CPanelPopup.ButtonBehavior>
      extended by bibliothek.gui.dock.common.action.CPanelPopup.ButtonBehavior
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CPanelPopup.ButtonBehavior>
Enclosing class:
CPanelPopup

public static enum CPanelPopup.ButtonBehavior
extends java.lang.Enum<CPanelPopup.ButtonBehavior>

When the popup should show up if the action is displayed as button.

Author:
Benjamin Sigg

Enum Constant Summary
OPEN_ON_CLICK
          the popup shows up if the mouse is released
OPEN_ON_PRESS
          the popup shows up if the mouse is pressed
 
Method Summary
static CPanelPopup.ButtonBehavior valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CPanelPopup.ButtonBehavior[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OPEN_ON_PRESS

public static final CPanelPopup.ButtonBehavior OPEN_ON_PRESS
the popup shows up if the mouse is pressed


OPEN_ON_CLICK

public static final CPanelPopup.ButtonBehavior OPEN_ON_CLICK
the popup shows up if the mouse is released

Method Detail

values

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

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

valueOf

public static CPanelPopup.ButtonBehavior 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