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
public class CmsVfsModePropertyEditor extends A_CmsPropertyEditor
The sitemap entry editor class for the VFS mode.- Since:
- 8.0.0
-
-
Field Summary
Fields Modifier and Type Field Description protected static boolean
m_resizeDisabled
True when resizing of the dialog is disabled.static int
UPDATE_HEIGHT_INTERVAL
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
Constructors Constructor Description CmsVfsModePropertyEditor(java.util.Map<java.lang.String,org.opencms.xml.content.CmsXmlContentProperty> propConfig, I_CmsPropertyEditorHandler handler)
Creates a new sitemap entry editor instance for the VFS mode.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildFields()
Builds and renders the fields for the properties.I_CmsFormWidget
createFormWidget(java.lang.String key, java.util.Map<java.lang.String,java.lang.String> widgetParams, com.google.common.base.Optional<java.lang.String> defaultValue)
Creates a new form widget.static void
disableResize(boolean disabled)
Disables resizing.void
focusNameField()
Focuses the file name field (delayed).CmsActiveFieldData
getActiveFieldData()
Gets the active field data.protected CmsPropertyPanel
getPropertyPanel()
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
setupFieldContainer()
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 Detail
-
UPDATE_HEIGHT_INTERVAL
public static final int UPDATE_HEIGHT_INTERVAL
The interval used for updating the height.- See Also:
- Constant Field Values
-
m_resizeDisabled
protected static boolean m_resizeDisabled
True when resizing of the dialog is disabled.
-
-
Constructor Detail
-
CmsVfsModePropertyEditor
public CmsVfsModePropertyEditor(java.util.Map<java.lang.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 Detail
-
disableResize
public static void disableResize(boolean disabled)
Disables resizing.- Parameters:
disabled
- true if resizing should be disabled
-
buildFields
public void buildFields()
Description copied from class:A_CmsPropertyEditor
Builds and renders the fields for the properties.- Specified by:
buildFields
in classA_CmsPropertyEditor
- See Also:
A_CmsPropertyEditor.buildFields()
-
createFormWidget
public I_CmsFormWidget createFormWidget(java.lang.String key, java.util.Map<java.lang.String,java.lang.String> widgetParams, com.google.common.base.Optional<java.lang.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:
A_CmsPropertyEditor.createFormWidget(java.lang.String, java.util.Map, com.google.common.base.Optional)
-
focusNameField
public void focusNameField()
Focuses the file name field (delayed).
-
getActiveFieldData
public CmsActiveFieldData getActiveFieldData()
Gets the active field data.- Returns:
- the active field data
-
initializeWidgets
public void initializeWidgets(CmsPopup dialog)
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:
A_CmsPropertyEditor.initializeWidgets(org.opencms.gwt.client.ui.CmsPopup)
-
restoreActiveFieldData
public void restoreActiveFieldData(CmsActiveFieldData fieldData)
Sets the active field data to be restored.- Parameters:
fieldData
- the active field data to be restored
-
setReadOnly
public void setReadOnly(boolean readonly)
Sets the "readonly" mode.- Parameters:
readonly
- if true, readonly mode will be enabled
-
setShowResourceProperties
public void setShowResourceProperties(boolean showResourceProperties)
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
protected CmsPropertyPanel getPropertyPanel()
Returns the property panel.- Returns:
- the property panel
-
handleSwitchTab
protected void handleSwitchTab(int toTab)
Method which is called when the tab is switched.- Parameters:
toTab
- the tab to which the user is switching
-
setupFieldContainer
protected void 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:
A_CmsPropertyEditor.setupFieldContainer()
-
updateHeight
protected void updateHeight(CmsPopup dialog)
Updates the panel height depending on the content of the current tab.- Parameters:
dialog
- the dialog for which the height should be updated
-
-