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 Runnable
The cancel handler.protected CmsFormDialog
The dialog instance.protected I_CmsFormHandler
The form handler. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the property definition button should be enabled.Creates the property definition button.Gets the form dialog.Gets the property saver.void
Initializes the close handler of the dialog.boolean
Return true if the file name field should be focused after opening the dialog.void
setAllowCreateProperties
(boolean allowCreateProperties) Enables / disables the 'define property' functionality.void
setCancelHandler
(Runnable cancelHandler) Sets the cancel handler.void
setDialog
(CmsFormDialog formDialog) Sets the form dialog.void
setFocusNameField
(boolean focusNameField) Enables / disables focusing on the name field.void
setFormHandler
(I_CmsFormHandler formHandler) Sets the form handler.void
Sets the file navigation object.void
Sets the property saver.void
setRestart
(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
-