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
FieldsModifier and TypeFieldDescriptionprotected static booleanTrue when resizing of the dialog is disabled.static final intThe 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
ConstructorsConstructorDescriptionCmsVfsModePropertyEditor(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 TypeMethodDescriptionvoidBuilds 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 voiddisableResize(boolean disabled) Disables resizing.voidFocuses the file name field (delayed).Gets the active field data.protected CmsPropertyPanelReturns the property panel.protected voidhandleSwitchTab(int toTab) Method which is called when the tab is switched.voidinitializeWidgets(CmsPopup dialog) Initializes the widgets for editing the properties.voidrestoreActiveFieldData(CmsActiveFieldData fieldData) Sets the active field data to be restored.voidsetReadOnly(boolean readonly) Sets the "readonly" mode.voidsetShowResourceProperties(boolean showResourceProperties) Sets the "show resource properties" flag which controls whether the resource value fields should be built.protected voidSets up the widget which will contain the input fields for the properties.protected voidupdateHeight(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_CmsPropertyEditorBuilds and renders the fields for the properties.- Specified by:
buildFieldsin 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_CmsFormWidgetMultiFactoryCreates a new form widget.- Specified by:
createFormWidgetin interfaceI_CmsFormWidgetMultiFactory- Overrides:
createFormWidgetin 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_CmsPropertyEditorInitializes the widgets for editing the properties.- Overrides:
initializeWidgetsin 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_CmsPropertyEditorSets up the widget which will contain the input fields for the properties.- Specified by:
setupFieldContainerin 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
-