Package com.vaadin.ui
Enum DragAndDropWrapper.DragStartMode
- java.lang.Object
-
- java.lang.Enum<DragAndDropWrapper.DragStartMode>
-
- com.vaadin.ui.DragAndDropWrapper.DragStartMode
-
- All Implemented Interfaces:
Serializable
,Comparable<DragAndDropWrapper.DragStartMode>
- Enclosing class:
- DragAndDropWrapper
public static enum DragAndDropWrapper.DragStartMode extends Enum<DragAndDropWrapper.DragStartMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPONENT
The component on which the drag started will be shown as drag image.COMPONENT_OTHER
Uses the component defined inDragAndDropWrapper.setDragImageComponent(Component)
as the drag image.HTML5
The whole wrapper is used to start an HTML5 drag.NONE
DragAndDropWrapper
does not start drag events at allWRAPPER
The whole wrapper is used as a drag image when dragging.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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 are declared.
-
-
-
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.
-
COMPONENT_OTHER
public static final DragAndDropWrapper.DragStartMode COMPONENT_OTHER
Uses the component defined inDragAndDropWrapper.setDragImageComponent(Component)
as the drag image.
-
-
Method Detail
-
values
public static DragAndDropWrapper.DragStartMode[] 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 (DragAndDropWrapper.DragStartMode c : DragAndDropWrapper.DragStartMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DragAndDropWrapper.DragStartMode 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
-
-