Class CmsEditProperties.PropertyEditingContext
java.lang.Object
org.opencms.gwt.client.ui.contextmenu.CmsEditProperties.PropertyEditingContext
- Enclosing class:
CmsEditProperties
Helper class which encapsulates the differences between the contexts where the property edit dialog is opened.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RunnableThe cancel handler.protected CmsFormDialogThe dialog instance.protected I_CmsFormHandlerThe form handler. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the property definition button should be enabled.Creates the property definition button.Gets the form dialog.Gets the property saver.voidInitializes the close handler of the dialog.booleanReturn true if the file name field should be focused after opening the dialog.voidsetAllowCreateProperties(boolean allowCreateProperties) Enables / disables the 'define property' functionality.voidsetCancelHandler(Runnable cancelHandler) Sets the cancel handler.voidsetDialog(CmsFormDialog formDialog) Sets the form dialog.voidsetFocusNameField(boolean focusNameField) Enables / disables focusing on the name field.voidsetFormHandler(I_CmsFormHandler formHandler) Sets the form handler.voidSets the file navigation object.voidSets the property saver.voidsetRestart(Runnable command) Sets the restart command (used to open the property dialog again after a secondary dialog).
-
Field Details
-
m_cancelHandler
The cancel handler. -
m_formDialog
The dialog instance. -
m_formHandler
The form handler.
-
-
Constructor Details
-
PropertyEditingContext
public PropertyEditingContext()
-
-
Method Details
-
allowCreateProperties
Returns true if the property definition button should be enabled.- Returns:
- true if the user should be able to define new properties
-
createPropertyDefinitionButton
Creates the property definition button.- Returns:
- the property definition button
-
getDialog
Gets the form dialog.- Returns:
- the form dialog
-
getPropertySaver
Gets the property saver.- Returns:
- the property saver
-
initCloseHandler
Initializes the close handler of the dialog. -
isFocusNameField
Return true if the file name field should be focused after opening the dialog.- Returns:
- true if the file name field should be focused
-
setAllowCreateProperties
Enables / disables the 'define property' functionality.- Parameters:
allowCreateProperties- true if the user should be able to create new properties
-
setCancelHandler
Sets the cancel handler.- Parameters:
cancelHandler- the cancel handler
-
setDialog
Sets the form dialog.- Parameters:
formDialog- the form dialog
-
setFocusNameField
Enables / disables focusing on the name field.- Parameters:
focusNameField- true if the file name field should be focused after opening the dialog
-
setFormHandler
Sets the form handler.- Parameters:
formHandler- the form handler
-
setPropertySaver
Sets the property saver.- Parameters:
saver- the property saver
-
setRestart
Sets the restart command (used to open the property dialog again after a secondary dialog).- Parameters:
command- the restart command
-