com.vaadin.ui.
Enum DragAndDropWrapper.DragStartMode
java.lang.Object
java.lang.Enum<DragAndDropWrapper.DragStartMode>
com.vaadin.ui.DragAndDropWrapper.DragStartMode
All Implemented Interfaces:
Enclosing class:
- extends Enum<DragAndDropWrapper.DragStartMode>
public static enum DragAndDropWrapper.DragStartMode
Enum Constant Summary | |
---|---|
COMPONENT
The component on which the drag started will be shown as drag image. |
|
HTML5
The whole wrapper is used to start an HTML5 drag. |
|
NONE
DragAndDropWrapper does not start drag events at all |
|
WRAPPER
The whole wrapper is used as a drag image when dragging. |
Method Summary | |
---|---|
static DragAndDropWrapper.DragStartMode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DragAndDropWrapper.DragStartMode[] |
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 |
---|
NONE
public static final DragAndDropWrapper.DragStartMode NONE
DragAndDropWrapper
does not start drag events at all
COMPONENT
public static final DragAndDropWrapper.DragStartMode COMPONENT
The component on which the drag started will be shown as drag image.
WRAPPER
public static final DragAndDropWrapper.DragStartMode WRAPPER
The whole wrapper is used as a drag image when dragging.
HTML5
public static final DragAndDropWrapper.DragStartMode HTML5
The whole wrapper is used to start an HTML5 drag. NOTE: In Internet Explorer 6 to 8, this prevents user interactions with the wrapper's contents. For example, clicking a button inside the wrapper will no longer work.
Method Detail |
---|
values
public static final DragAndDropWrapper.DragStartMode[] values()
- Returns:
- an array containing the constants of this enum type, in the order they're declared
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(DragAndDropWrapper.DragStartMode c : DragAndDropWrapper.DragStartMode.values())
System.out.println(c);
valueOf
public static DragAndDropWrapper.DragStartMode valueOf(String name)
- 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
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.)