Enum EditAction

java.lang.Object
java.lang.Enum<EditAction>
com.day.cq.wcm.api.components.EditAction
All Implemented Interfaces:
Toolbar.Item, Serializable, Comparable<EditAction>, java.lang.constant.Constable, JSONString

public enum EditAction extends Enum<EditAction> implements JSONString, Toolbar.Item
Defines the current predefined edit control actions for the ext widgets.
  • Enum Constant Details

    • EDIT

      public static final EditAction EDIT
      Edit action
    • DELETE

      public static final EditAction DELETE
      Delete action
    • INSERT

      public static final EditAction INSERT
      Insert action
    • COPYMOVE

      public static final EditAction COPYMOVE
      Cut/Copy/Paste actions
    • EDITDELETE

      public static final EditAction EDITDELETE
      Edit/Delete actions
    • EDITANNOTATEDELETE

      public static final EditAction EDITANNOTATEDELETE
      Edit/Annotate/Delete actions
    • EDITANNOTATEDELETEINSERT

      public static final EditAction EDITANNOTATEDELETEINSERT
      Edit/Annotate/Delete/Insert actions
    • EDITDELETEINSERT

      public static final EditAction EDITDELETEINSERT
      Edit/Delete/Insert actions
    • EDITANNOTATECOPYMOVEDELETEINSERT

      public static final EditAction EDITANNOTATECOPYMOVEDELETEINSERT
      Edit/Annotate/Cut/Copy/Paste/Delete/Insert actions
    • EDITANNOTATE

      public static final EditAction EDITANNOTATE
      Edit/Annotate actions
    • EDITCOPYMOVEDELETEINSERT

      public static final EditAction EDITCOPYMOVEDELETEINSERT
      Edit/Cut/Copy/Paste/Delete/Insert actions
    • EDITANNOTATECOPYMOVEINSERT

      public static final EditAction EDITANNOTATECOPYMOVEINSERT
      Edit/Annotate/Copy/Move/Insert actions
    • EDITCOPYMOVEINSERT

      public static final EditAction EDITCOPYMOVEINSERT
      Edit/Copy/Move/Insert actions
    • _CLEAR

      public static final EditAction _CLEAR
      virtual action that clears inheritance
  • Method Details

    • values

      public static EditAction[] 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 EditAction 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
    • toJSONString

      public String toJSONString()
      Returns the js type, i.e. the javascript constant used by the widgets.
      Specified by:
      toJSONString in interface JSONString
      Returns:
      the js type
    • write

      public void write(JSONWriter writer) throws JSONException
      Serialize to JSON writer.
      Specified by:
      write in interface Toolbar.Item
      Parameters:
      writer - the writer
      Throws:
      JSONException - if a JSON error occurs.