|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.day.cq.wcm.core.impl.components.ComponentEditConfigImpl
public class ComponentEditConfigImpl
Implements an edit config
| Field Summary | |
|---|---|
protected DialogMode |
dialogMode
|
protected Map<String,DropTarget> |
dropTargets
|
protected String |
emptyText
|
protected Map<String,String> |
formParams
|
protected String |
insertBehavior
|
protected boolean |
isEmpty
|
protected static String |
KEY_ACTIONS
|
protected static String |
KEY_DROP_TARGET
|
protected static String |
KEY_EMPTY_TEXT
|
protected static String |
KEY_INLINE_EDITING
|
protected static String |
KEY_INSERT_BEHAVIOUR
|
protected static String |
KEY_IS_EMPTY
|
protected static String |
KEY_LAYOUT
|
protected static String |
KEY_LISTENERS
|
protected static String |
KEY_ORDERABLE
|
protected static String |
KEY_PARAMS
|
protected static String |
KEY_XTYPE
|
protected EditLayout |
layout
|
protected Map<String,String> |
listeners
|
protected Boolean |
orderable
|
protected Toolbar |
toolbar
|
| Constructor Summary | |
|---|---|
protected |
ComponentEditConfigImpl()
Creates a new edit config |
protected |
ComponentEditConfigImpl(ComponentEditConfig config)
Creates a new edit config |
| Method Summary | |
|---|---|
protected static ComponentEditConfigImpl |
create(Node node)
Creates a new editing from the given node |
DialogMode |
getDialogMode()
Returns the display mode of the dialog |
Map<String,DropTarget> |
getDropTargets()
Returns a unmodifiable map of configurations of drop targets. |
String |
getEmptyText()
Gets the text to be displayed when ComponentEditConfig.isEmpty() is true. |
Map<String,String> |
getFormParameters()
Returns an unmodifiable map for additional form parameters to be included in the dialog. |
String |
getInsertBehavior()
Returns the insert behavior or null of not defined |
EditLayout |
getLayout()
Returns the edit layout for the edit control widget. |
Map<String,String> |
getListeners()
Returns an unmodifiable map of edit listeners. |
Toolbar |
getToolbar()
Returns the (unmodifiable) toolbar for the editbar/menu. |
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. |
Boolean |
isOrderable()
Returns if the edited component is orderable. |
protected void |
seal()
|
void |
write(org.apache.sling.commons.json.io.JSONWriter out)
Serializes this descriptor to json |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String KEY_INSERT_BEHAVIOUR
protected static final String KEY_LISTENERS
protected static final String KEY_INLINE_EDITING
protected static final String KEY_DROP_TARGET
protected static final String KEY_PARAMS
protected static final String KEY_LAYOUT
protected static final String KEY_ACTIONS
protected static final String KEY_IS_EMPTY
protected static final String KEY_EMPTY_TEXT
protected static final String KEY_XTYPE
protected static final String KEY_ORDERABLE
protected EditLayout layout
protected DialogMode dialogMode
protected String insertBehavior
protected boolean isEmpty
protected String emptyText
protected Boolean orderable
protected Toolbar toolbar
protected Map<String,DropTarget> dropTargets
protected Map<String,String> formParams
protected Map<String,String> listeners
| Constructor Detail |
|---|
protected ComponentEditConfigImpl()
protected ComponentEditConfigImpl(ComponentEditConfig config)
config - the base config| Method Detail |
|---|
protected static ComponentEditConfigImpl create(Node node)
throws RepositoryException
node - the node
RepositoryException - if an error occursprotected void seal()
public boolean isDefault()
true the edit config does not
need to be submitted to the client.
isDefault in interface ComponentEditConfigtrue if defaultpublic EditLayout getLayout()
getLayout in interface ComponentEditConfigpublic Map<String,DropTarget> getDropTargets()
getDropTargets in interface ComponentEditConfigpublic String getInsertBehavior()
null of not defined
getInsertBehavior in interface ComponentEditConfignullpublic Toolbar getToolbar()
getToolbar in interface ComponentEditConfigpublic DialogMode getDialogMode()
getDialogMode in interface ComponentEditConfigpublic boolean isEmpty()
empty 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 String getEmptyText()
ComponentEditConfig.isEmpty() is true.
Returns null if the default text is displayed.
getEmptyText in interface ComponentEditConfignullpublic Boolean isOrderable()
isOrderable in interface ComponentEditConfigtrue if the component is orderable or null
if the behavior is defined by the widgets.public Map<String,String> getFormParameters()
getFormParameters in interface ComponentEditConfigpublic Map<String,String> getListeners()
getListeners in interface ComponentEditConfig
public void write(org.apache.sling.commons.json.io.JSONWriter out)
throws org.apache.sling.commons.json.JSONException
write in interface ComponentEditConfigout - json writer
org.apache.sling.commons.json.JSONException - if a JSON error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||