Class CmsEditProperties.PropertyEditorHandler
- java.lang.Object
-
- org.opencms.gwt.client.property.CmsSimplePropertyEditorHandler
-
- org.opencms.gwt.client.ui.contextmenu.CmsEditProperties.PropertyEditorHandler
-
- All Implemented Interfaces:
I_CmsPropertyEditorHandler
- Enclosing class:
- CmsEditProperties
protected static class CmsEditProperties.PropertyEditorHandler extends CmsSimplePropertyEditorHandler
Property editor handler which uses a text box for the template selection.
-
-
Field Summary
-
Fields inherited from class org.opencms.gwt.client.property.CmsSimplePropertyEditorHandler
m_propertiesBean
-
-
Constructor Summary
Constructors Constructor Description PropertyEditorHandler(I_CmsContextMenuHandler handler)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
onSubmitSuccess()
Called when the form is submitted successfully.void
runAction()
Executes and clears the stored callback.void
setEnableAdeTemplateSelect(boolean enableAdeTemplateSelect)
Enables or disables the ADE template select box for pages.void
setNextAction(java.lang.Runnable runnable)
Stores an action to execute after successful submits.boolean
useAdeTemplates()
Returns true if the property editor should use only ADE templates.-
Methods inherited from class org.opencms.gwt.client.property.CmsSimplePropertyEditorHandler
getAllPropertyNames, getContextMenuHandler, getDefaultFileId, getDefaultFileProperties, getDialogTitle, getForbiddenUrlNames, getId, getInheritedProperty, getModeClass, getName, getOwnProperties, getPageInfo, getPath, getPossibleTemplates, handleSubmit, hasEditableName, isFolder, isHiddenProperty, isSimpleMode, saveProperties, setEditableName, setPropertiesBean, setPropertySaver
-
-
-
-
Constructor Detail
-
PropertyEditorHandler
public PropertyEditorHandler(I_CmsContextMenuHandler handler)
Creates a new instance.- Parameters:
handler
- the handler
-
-
Method Detail
-
runAction
public void runAction()
Executes and clears the stored callback.
-
setEnableAdeTemplateSelect
public void setEnableAdeTemplateSelect(boolean enableAdeTemplateSelect)
Enables or disables the ADE template select box for pages.- Parameters:
enableAdeTemplateSelect
- true if ADE template select box for pages should be enabled
-
setNextAction
public void setNextAction(java.lang.Runnable runnable)
Stores an action to execute after successful submits.- Parameters:
runnable
- the callback
-
useAdeTemplates
public boolean useAdeTemplates()
Description copied from interface:I_CmsPropertyEditorHandler
Returns true if the property editor should use only ADE templates.- Specified by:
useAdeTemplates
in interfaceI_CmsPropertyEditorHandler
- Overrides:
useAdeTemplates
in classCmsSimplePropertyEditorHandler
- Returns:
- true if the property editor should use only ADE templates
- See Also:
CmsSimplePropertyEditorHandler.useAdeTemplates()
-
onSubmitSuccess
protected void onSubmitSuccess()
Description copied from class:CmsSimplePropertyEditorHandler
Called when the form is submitted successfully.- Overrides:
onSubmitSuccess
in classCmsSimplePropertyEditorHandler
- See Also:
CmsSimplePropertyEditorHandler.onSubmitSuccess()
-
-