Enum DesktopPanelTag.DragMode
- java.lang.Object
-
- java.lang.Enum<DesktopPanelTag.DragMode>
-
- net.sf.jguiraffe.gui.builder.components.tags.DesktopPanelTag.DragMode
-
- All Implemented Interfaces:
Serializable
,Comparable<DesktopPanelTag.DragMode>
- Enclosing class:
- DesktopPanelTag
public static enum DesktopPanelTag.DragMode extends Enum<DesktopPanelTag.DragMode>
Enumeration class that defines the allowed values for thedragmode
attribute.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DesktopPanelTag.DragMode
fromString(String name)
Returns the enumeration literal whose name matches the given string.static DesktopPanelTag.DragMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static DesktopPanelTag.DragMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LIVE
public static final DesktopPanelTag.DragMode LIVE
Constant for the drag mode live. This means that windows are fully painted while they are dragged on the desktop pane.
-
OUTLINE
public static final DesktopPanelTag.DragMode OUTLINE
Constant for the drag mode outline. In this mode only a frame is drawn representing the window dragged on the desktop pane.
-
-
Method Detail
-
values
public static DesktopPanelTag.DragMode[] 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 (DesktopPanelTag.DragMode c : DesktopPanelTag.DragMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DesktopPanelTag.DragMode 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 nameNullPointerException
- if the argument is null
-
fromString
public static DesktopPanelTag.DragMode fromString(String name)
Returns the enumeration literal whose name matches the given string. The case does not matter. If no matching literal can be found, null is returned.- Parameters:
name
- the name of the literal- Returns:
- the instance representing this value or null if it cannot be found
-
-