Package org.opencms.gwt.client.property
Class CmsVfsModePropertyEditor
java.lang.Object
org.opencms.gwt.client.property.A_CmsPropertyEditor
org.opencms.gwt.client.property.CmsVfsModePropertyEditor
- All Implemented Interfaces:
I_CmsFormWidgetMultiFactory
The sitemap entry editor class for the VFS mode.
- Since:
- 8.0.0
-
Field Summary
Modifier and TypeFieldDescriptionprotected static boolean
True when resizing of the dialog is disabled.static final int
The interval used for updating the height.Fields inherited from class org.opencms.gwt.client.property.A_CmsPropertyEditor
FIELD_LINK, FIELD_URLNAME, m_allProps, m_disabledReason, m_form, m_handler, m_nameOnlyDisabled, m_propertyConfig, m_urlNameField, m_urlNameModel
-
Constructor Summary
ConstructorDescriptionCmsVfsModePropertyEditor
(Map<String, org.opencms.xml.content.CmsXmlContentProperty> propConfig, I_CmsPropertyEditorHandler handler) Creates a new sitemap entry editor instance for the VFS mode. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Builds and renders the fields for the properties.createFormWidget
(String key, Map<String, String> widgetParams, com.google.common.base.Optional<String> defaultValue) Creates a new form widget.static void
disableResize
(boolean disabled) Disables resizing.void
Focuses the file name field (delayed).Gets the active field data.protected CmsPropertyPanel
Returns the property panel.protected void
handleSwitchTab
(int toTab) Method which is called when the tab is switched.void
initializeWidgets
(CmsPopup dialog) Initializes the widgets for editing the properties.void
restoreActiveFieldData
(CmsActiveFieldData fieldData) Sets the active field data to be restored.void
setReadOnly
(boolean readonly) Sets the "readonly" mode.void
setShowResourceProperties
(boolean showResourceProperties) Sets the "show resource properties" flag which controls whether the resource value fields should be built.protected void
Sets up the widget which will contain the input fields for the properties.protected void
updateHeight
(CmsPopup dialog) Updates the panel height depending on the content of the current tab.Methods inherited from class org.opencms.gwt.client.property.A_CmsPropertyEditor
addSpecialFields, checkWidgetRequirements, createUrlNameField, disableInput, getForm, getTitle, getUrlNameModel, message, setGhostValue, setPropertyNames, setUrlNameField, showUrlNameError
-
Field Details
-
UPDATE_HEIGHT_INTERVAL
The interval used for updating the height.- See Also:
-
m_resizeDisabled
True when resizing of the dialog is disabled.
-
-
Constructor Details
-
CmsVfsModePropertyEditor
public CmsVfsModePropertyEditor(Map<String, org.opencms.xml.content.CmsXmlContentProperty> propConfig, I_CmsPropertyEditorHandler handler) Creates a new sitemap entry editor instance for the VFS mode.- Parameters:
propConfig
- the property configurationhandler
- the sitemap entry editor handler
-
-
Method Details
-
disableResize
Disables resizing.- Parameters:
disabled
- true if resizing should be disabled
-
buildFields
Description copied from class:A_CmsPropertyEditor
Builds and renders the fields for the properties.- Specified by:
buildFields
in classA_CmsPropertyEditor
- See Also:
-
createFormWidget
public I_CmsFormWidget createFormWidget(String key, Map<String, String> widgetParams, com.google.common.base.Optional<String> defaultValue) Description copied from interface:I_CmsFormWidgetMultiFactory
Creates a new form widget.- Specified by:
createFormWidget
in interfaceI_CmsFormWidgetMultiFactory
- Overrides:
createFormWidget
in classA_CmsPropertyEditor
- Parameters:
key
- the key identifying the widget typewidgetParams
- the widget initialization parametersdefaultValue
- an optional default value- Returns:
- the created form widget
- See Also:
-
focusNameField
Focuses the file name field (delayed). -
getActiveFieldData
Gets the active field data.- Returns:
- the active field data
-
initializeWidgets
Description copied from class:A_CmsPropertyEditor
Initializes the widgets for editing the properties.- Overrides:
initializeWidgets
in classA_CmsPropertyEditor
- Parameters:
dialog
- the dialog which the property editor is part of- See Also:
-
restoreActiveFieldData
Sets the active field data to be restored.- Parameters:
fieldData
- the active field data to be restored
-
setReadOnly
Sets the "readonly" mode.- Parameters:
readonly
- if true, readonly mode will be enabled
-
setShowResourceProperties
Sets the "show resource properties" flag which controls whether the resource value fields should be built.- Parameters:
showResourceProperties
- if true, the resource value fields will be build
-
getPropertyPanel
Returns the property panel.- Returns:
- the property panel
-
handleSwitchTab
Method which is called when the tab is switched.- Parameters:
toTab
- the tab to which the user is switching
-
setupFieldContainer
Description copied from class:A_CmsPropertyEditor
Sets up the widget which will contain the input fields for the properties.- Specified by:
setupFieldContainer
in classA_CmsPropertyEditor
- See Also:
-
updateHeight
Updates the panel height depending on the content of the current tab.- Parameters:
dialog
- the dialog for which the height should be updated
-