Enum Class DefaultWrangler.CreationMode
java.lang.Object
java.lang.Enum<DefaultWrangler.CreationMode>
com.levigo.jadice.web.client.internal.annotation.wrangler.DefaultWrangler.CreationMode
- All Implemented Interfaces:
Serializable
,Comparable<DefaultWrangler.CreationMode>
,Constable
- Enclosing class:
DefaultWrangler<T extends Annotation>
Set how many mouse interactions must be made in order to create an annotation. If you want to set
this via an annotation profile, use the following code fragment there
<wrangler toolkit="gwt" class=
"com.levigo.jadice.web.client.internal.annotation.wrangler.DefaultWrangler">
<property name="creationMode" propertyType="enum">SINGLE_CLICK</property>
</wrangler>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDefault behavior, annotation will be created on click and can be resized while dragging, releasing the mouse button will finish the creation procedure.Annotation will be created on click, the creation procedure will be finished immediately. -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultWrangler.CreationMode
Returns the enum constant of this class with the specified name.static DefaultWrangler.CreationMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Default behavior, annotation will be created on click and can be resized while dragging, releasing the mouse button will finish the creation procedure. -
SINGLE_CLICK
Annotation will be created on click, the creation procedure will be finished immediately. No dragging / resizing possible during creation. Will be used for annotations with a predefined size, e.g. Annotations that have their default size set by aAnnotationCustomizer
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-