public class CustomEditConfig extends java.lang.Object implements EditConfig
LISTENER_AFTERCREATE, LISTENER_AFTERDELETE, LISTENER_AFTEREDIT, LISTENER_AFTERINSERT, LISTENER_AFTERMOVE, LISTENER_AFTERREMOVE, REFRESH_PAGE, REFRESH_PARENT, REFRESH_SELF| Constructor and Description |
|---|
CustomEditConfig(ComponentEditConfig cfg) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawEditing(java.io.PrintWriter out,
java.lang.String contentPath,
java.lang.String resourceType,
java.lang.String dlgPath,
Cell cell,
boolean isContainer) |
DialogMode |
getDialogMode()
Returns the display mode of the dialog
|
java.util.Map<java.lang.String,DropTarget> |
getDropTargets()
Returns amap of configurations of drop targets.
|
java.lang.String |
getEmptyText()
Gets the text to be displayed when
ComponentEditConfig.isEmpty() is true. |
java.util.Map<java.lang.String,java.lang.Object> |
getFormParameterMap()
Returns the additional form parameters to be included in the dialog.
|
java.util.Map<java.lang.String,java.lang.String> |
getFormParameters()
Returns a modifiable map for additional form parameters to be included
in the dialog.
|
InplaceEditingConfig |
getInplaceEditingConfig()
Returns the configuration for inplace editing of this configuration.
|
java.lang.String |
getInsertBehavior()
Returns the insert behavior or
null of not defined |
EditLayout |
getLayout()
Returns the edit layout for the edit control widget.
|
java.util.Map<java.lang.String,java.lang.String> |
getListeners()
Returns a modifiable map of edit listeners
|
JSONItem |
getLiveRelationship()
Returns the component live relationship.
|
Toolbar |
getToolbar()
Returns the (modifiable) toolbar for the editbar/menu.
|
java.lang.Boolean |
isDeepCancel()
Returns if cancelling inheritance of the component sets the cq:isCancelledForChildren flag or not.
|
boolean |
isDefault()
Checks if this config has all default values in respect to the default
values of the widgets.
|
boolean |
isEmpty()
Returns the
empty flag. |
java.lang.Boolean |
isOrderable()
Returns if the edited component is orderable.
|
boolean |
isTargetingDisabled()
Returns if targeting is disabled for this component.
|
void |
setDeepCancel(java.lang.Boolean deepCancel)
Sets if cancelling inheritance of the component sets the cq:isCancelledForChildren flag or not.
|
void |
setDialogMode(DialogMode mode)
Sets the dialog mode
|
void |
setEmpty(boolean empty)
Sets the
empty flag. |
void |
setEmptyText(java.lang.String emptyText)
Sets the text to be displayed when
ComponentEditConfig.isEmpty() is true. |
void |
setInplaceEditingConfig(InplaceEditingConfig inplaceEditingConfig)
Sets the inplace editing configuration.
|
void |
setInsertBehavior(java.lang.String insertBehavior)
Sets the insert behavior
|
void |
setLayout(EditLayout layout)
Sets the edit layout for the edit control widget.
|
void |
setLiveRelationship(JSONItem liveRelationship)
Set the computed live relationship of the component
TODO seems like we are only considering this as an additional JSONItem
to render - if that's confirmed we might rename this method.
|
void |
setOrderable(java.lang.Boolean orderable)
Sets if the edited component is orderable.
|
void |
write(JSONWriter out)
Serializes this descriptor to json
|
public CustomEditConfig(ComponentEditConfig cfg)
public void drawEditing(java.io.PrintWriter out,
java.lang.String contentPath,
java.lang.String resourceType,
java.lang.String dlgPath,
Cell cell,
boolean isContainer)
throws java.io.IOException
java.io.IOExceptionpublic void setLayout(EditLayout layout)
EditConfigsetLayout in interface EditConfiglayout - edit layoutpublic void setInsertBehavior(java.lang.String insertBehavior)
EditConfigsetInsertBehavior in interface EditConfiginsertBehavior - the behaviorpublic void setDialogMode(DialogMode mode)
EditConfigsetDialogMode in interface EditConfigmode - the modepublic void setInplaceEditingConfig(InplaceEditingConfig inplaceEditingConfig)
EditConfigsetInplaceEditingConfig in interface EditConfiginplaceEditingConfig - The inplace editing configurationpublic void setEmpty(boolean empty)
EditConfigempty flag. If true this indicates
that the component has not visual content and a placeholder text should
be rendered.setEmpty in interface EditConfigempty - true if a placeholder text should be rendered.public void setEmptyText(java.lang.String emptyText)
EditConfigComponentEditConfig.isEmpty() is true.
If text is null then the default text is displayed.setEmptyText in interface EditConfigemptyText - the text or nullpublic void setOrderable(java.lang.Boolean orderable)
EditConfigsetOrderable in interface EditConfigorderable - true to enable ordering or null
if the behavior is defined by the widgets.public void setDeepCancel(java.lang.Boolean deepCancel)
EditConfigsetDeepCancel in interface EditConfigdeepCancel - true if cancel sets the flag or null
if cancel does not set the flag.public void setLiveRelationship(JSONItem liveRelationship)
EditConfigsetLiveRelationship in interface EditConfigliveRelationship - the relationship to setpublic boolean isDefault()
ComponentEditConfigtrue the edit config does not
need to be submitted to the client.isDefault in interface ComponentEditConfigtrue if defaultpublic EditLayout getLayout()
ComponentEditConfiggetLayout in interface ComponentEditConfigpublic java.util.Map<java.lang.String,DropTarget> getDropTargets()
EditConfiggetDropTargets in interface ComponentEditConfiggetDropTargets in interface EditConfigpublic java.lang.String getInsertBehavior()
ComponentEditConfignull of not definedgetInsertBehavior in interface ComponentEditConfignullpublic Toolbar getToolbar()
EditConfiggetToolbar in interface ComponentEditConfiggetToolbar in interface EditConfigpublic DialogMode getDialogMode()
ComponentEditConfiggetDialogMode in interface ComponentEditConfigpublic InplaceEditingConfig getInplaceEditingConfig()
ComponentEditConfiggetInplaceEditingConfig in interface ComponentEditConfignull if there is no inplace editing
config (which means that no inplace editing is available for the component)public boolean isEmpty()
ComponentEditConfigempty flag. Indicates if the respective
component has no visual content and a placeholder text should be
rendered.isEmpty in interface ComponentEditConfigtrue if a placeholder text should be renderedpublic java.lang.String getEmptyText()
ComponentEditConfigComponentEditConfig.isEmpty() is true.
Returns null if the default text is displayed.getEmptyText in interface ComponentEditConfignullpublic java.lang.Boolean isOrderable()
ComponentEditConfigisOrderable in interface ComponentEditConfigtrue if the component is orderable or null
if the behavior is defined by the widgets.public java.util.Map<java.lang.String,java.lang.String> getFormParameters()
EditConfiggetFormParameters in interface ComponentEditConfiggetFormParameters in interface EditConfigpublic java.util.Map<java.lang.String,java.lang.String> getListeners()
EditConfiggetListeners in interface ComponentEditConfiggetListeners in interface EditConfigpublic JSONItem getLiveRelationship()
ComponentEditConfiggetLiveRelationship in interface ComponentEditConfignull otherwisepublic java.lang.Boolean isDeepCancel()
ComponentEditConfigisDeepCancel in interface ComponentEditConfigtrue if cancel sets the flag or null
if cancel does not set the flag.public boolean isTargetingDisabled()
ComponentEditConfigisTargetingDisabled in interface ComponentEditConfigtrue if targeting is disabled, false if targeting is allowedpublic void write(JSONWriter out) throws JSONException
JSONItemwrite in interface JSONItemout - json writerJSONException - if a JSON error occurspublic java.util.Map<java.lang.String,java.lang.Object> getFormParameterMap()
EditConfiggetFormParameterMap in interface ComponentEditConfiggetFormParameterMap in interface EditConfigCopyright © 2010 - 2023 Adobe. All Rights Reserved