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>

public static enum DefaultWrangler.CreationMode extends Enum<DefaultWrangler.CreationMode>
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>

  • Enum Constant Details

    • DEFAULT

      public static final DefaultWrangler.CreationMode 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

      public static final DefaultWrangler.CreationMode 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 a AnnotationCustomizer.
  • Method Details

    • values

      public static DefaultWrangler.CreationMode[] 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

      public static DefaultWrangler.CreationMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null