Class CmsEditProperties.WorkplacePropertyEditorContext
- java.lang.Object
-
- org.opencms.gwt.client.ui.contextmenu.CmsEditProperties.WorkplacePropertyEditorContext
-
- All Implemented Interfaces:
I_CmsFormHandler
- Enclosing class:
- CmsEditProperties
public static class CmsEditProperties.WorkplacePropertyEditorContext extends java.lang.Object implements I_CmsFormHandler
Helper class for editing properties in the workplace.
-
-
Constructor Summary
Constructors Constructor Description WorkplacePropertyEditorContext(org.opencms.util.CmsUUID structureId, I_CmsContextMenuHandler contextMenuHandler, boolean editName, java.lang.Runnable cancelHandler, boolean enableAdeTemplateSelect, CmsEditProperties.PropertyEditingContext editContext, CmsActiveFieldData prevFieldData)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
editProperties()
Edits properties for current resource.org.opencms.util.CmsUUID
getStructureId()
Gets the structure id.boolean
isSubmitting()
Returns true if properties are currently being submitted.void
onSubmitValidationResult(CmsForm form, boolean ok)
This method is called when the validation triggered by an attempt to submit the form has finished.void
onValidationResult(CmsForm form, boolean ok)
This method is called when the normal validation triggered by changing fields has finished.
-
-
-
Constructor Detail
-
WorkplacePropertyEditorContext
public WorkplacePropertyEditorContext(org.opencms.util.CmsUUID structureId, I_CmsContextMenuHandler contextMenuHandler, boolean editName, java.lang.Runnable cancelHandler, boolean enableAdeTemplateSelect, CmsEditProperties.PropertyEditingContext editContext, CmsActiveFieldData prevFieldData)
Creates a new instance.- Parameters:
structureId
- the structure id of the resourcecontextMenuHandler
- the context menu handlereditName
- true if name should be editablecancelHandler
- the cancel handlerenableAdeTemplateSelect
- true if ADE template selection should be enablededitContext
- the edit contextprevFieldData
- the previous field data
-
-
Method Detail
-
editProperties
public void editProperties()
Edits properties for current resource.
-
getStructureId
public org.opencms.util.CmsUUID getStructureId()
Gets the structure id.- Returns:
- the structure id
-
isSubmitting
public boolean isSubmitting()
Description copied from interface:I_CmsFormHandler
Returns true if properties are currently being submitted.- Specified by:
isSubmitting
in interfaceI_CmsFormHandler
- Returns:
- true if properties are being submitted
- See Also:
I_CmsFormHandler.isSubmitting()
-
onSubmitValidationResult
public void onSubmitValidationResult(CmsForm form, boolean ok)
Description copied from interface:I_CmsFormHandler
This method is called when the validation triggered by an attempt to submit the form has finished.- Specified by:
onSubmitValidationResult
in interfaceI_CmsFormHandler
- Parameters:
form
- the formok
- the validation result- See Also:
I_CmsFormHandler.onSubmitValidationResult(org.opencms.gwt.client.ui.input.form.CmsForm, boolean)
-
onValidationResult
public void onValidationResult(CmsForm form, boolean ok)
Description copied from interface:I_CmsFormHandler
This method is called when the normal validation triggered by changing fields has finished.- Specified by:
onValidationResult
in interfaceI_CmsFormHandler
- Parameters:
form
- the formok
- the validation result- See Also:
I_CmsFormHandler.onValidationResult(org.opencms.gwt.client.ui.input.form.CmsForm, boolean)
-
-