Package com.day.cq.wcm.api.components
Enum EditAction
- All Implemented Interfaces:
Toolbar.Item,Serializable,Comparable<EditAction>,java.lang.constant.Constable,JSONString
Defines the current predefined edit control actions for the ext widgets.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionvirtual action that clears inheritanceCut/Copy/Paste actionsDelete actionEdit actionEdit/Annotate actionsEdit/Annotate/Cut/Copy/Paste/Delete/Insert actionsEdit/Annotate/Copy/Move/Insert actionsEdit/Annotate/Delete actionsEdit/Annotate/Delete/Insert actionsEdit/Cut/Copy/Paste/Delete/Insert actionsEdit/Copy/Move/Insert actionsEdit/Delete actionsEdit/Delete/Insert actionsInsert action -
Method Summary
Modifier and TypeMethodDescriptionReturns the js type, i.e.static EditActionReturns the enum constant of this type with the specified name.static EditAction[]values()Returns an array containing the constants of this enum type, in the order they are declared.voidwrite(JSONWriter writer) Serialize to JSON writer.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
EDIT
Edit action -
DELETE
Delete action -
INSERT
Insert action -
COPYMOVE
Cut/Copy/Paste actions -
EDITDELETE
Edit/Delete actions -
EDITANNOTATEDELETE
Edit/Annotate/Delete actions -
EDITANNOTATEDELETEINSERT
Edit/Annotate/Delete/Insert actions -
EDITDELETEINSERT
Edit/Delete/Insert actions -
EDITANNOTATECOPYMOVEDELETEINSERT
Edit/Annotate/Cut/Copy/Paste/Delete/Insert actions -
EDITANNOTATE
Edit/Annotate actions -
EDITCOPYMOVEDELETEINSERT
Edit/Cut/Copy/Paste/Delete/Insert actions -
EDITANNOTATECOPYMOVEINSERT
Edit/Annotate/Copy/Move/Insert actions -
EDITCOPYMOVEINSERT
Edit/Copy/Move/Insert actions -
_CLEAR
virtual action that clears inheritance
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
toJSONString
Returns the js type, i.e. the javascript constant used by the widgets.- Specified by:
toJSONStringin interfaceJSONString- Returns:
- the js type
-
write
Serialize to JSON writer.- Specified by:
writein interfaceToolbar.Item- Parameters:
writer- the writer- Throws:
JSONException- if a JSON error occurs.
-