Enum ScrollSurface.EditTrigger

java.lang.Object
java.lang.Enum<ScrollSurface.EditTrigger>
com.codename1.ui.ScrollSurface.EditTrigger
All Implemented Interfaces:
Comparable<ScrollSurface.EditTrigger>
Enclosing class:
ScrollSurface

public static enum ScrollSurface.EditTrigger extends Enum<ScrollSurface.EditTrigger>
What started a possible edit, as editStarted is told.
  • Enum Constant Details

    • DRAG

      public static final ScrollSurface.EditTrigger DRAG
      A drag where an edit may start on anything editable: the default with a mouse, or wherever setDragEdits(true) was called.
    • HANDLE_DRAG

      public static final ScrollSurface.EditTrigger HANDLE_DRAG
      A drag on a touch screen: it pans unless it starts on something made to be dragged, such as the resize handle of a selected item.
    • LONG_PRESS

      public static final ScrollSurface.EditTrigger LONG_PRESS
      A long press.
  • Method Details

    • values

      public static ScrollSurface.EditTrigger[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ScrollSurface.EditTrigger 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