com.vaadin.ui
Enum DragAndDropWrapper.DragStartMode

java.lang.Object
  extended by java.lang.Enum<DragAndDropWrapper.DragStartMode>
      extended by 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
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 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

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 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 name
NullPointerException - if the argument is null


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.