Package com.day.cq.wcm.api.components
Enum EditAction
- java.lang.Object
-
- java.lang.Enum<EditAction>
-
- com.day.cq.wcm.api.components.EditAction
-
- All Implemented Interfaces:
Toolbar.Item
,java.io.Serializable
,java.lang.Comparable<EditAction>
,JSONString
public enum EditAction extends java.lang.Enum<EditAction> implements JSONString, Toolbar.Item
Defines the current predefined edit control actions for the ext widgets.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description _CLEAR
virtual action that clears inheritanceCOPYMOVE
Cut/Copy/Paste actionsDELETE
Delete actionEDIT
Edit actionEDITANNOTATE
Edit/Annotate actionsEDITANNOTATECOPYMOVEDELETEINSERT
Edit/Annotate/Cut/Copy/Paste/Delete/Insert actionsEDITANNOTATECOPYMOVEINSERT
Edit/Annotate/Copy/Move/Insert actionsEDITANNOTATEDELETE
Edit/Annotate/Delete actionsEDITANNOTATEDELETEINSERT
Edit/Annotate/Delete/Insert actionsEDITCOPYMOVEDELETEINSERT
Edit/Cut/Copy/Paste/Delete/Insert actionsEDITCOPYMOVEINSERT
Edit/Copy/Move/Insert actionsEDITDELETE
Edit/Delete actionsEDITDELETEINSERT
Edit/Delete/Insert actionsINSERT
Insert action
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toJSONString()
Returns the js type, i.e.static EditAction
valueOf(java.lang.String name)
Returns 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.void
write(JSONWriter writer)
Serialize to JSON writer.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static EditAction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EditAction c : EditAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EditAction valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toJSONString
public java.lang.String toJSONString()
Returns the js type, i.e. the javascript constant used by the widgets.- Specified by:
toJSONString
in interfaceJSONString
- Returns:
- the js type
-
write
public void write(JSONWriter writer) throws JSONException
Serialize to JSON writer.- Specified by:
write
in interfaceToolbar.Item
- Parameters:
writer
- the writer- Throws:
JSONException
- if a JSON error occurs.
-
-