Package org.opencms.gwt.client.property
Class CmsSimplePropertyEditor
java.lang.Object
org.opencms.gwt.client.property.A_CmsPropertyEditor
org.opencms.gwt.client.property.CmsSimplePropertyEditor
- All Implemented Interfaces:
I_CmsFormWidgetMultiFactory
- Direct Known Subclasses:
CmsUploadPropertyEditor
The sitemap entry editor class for the VFS mode.
- Since:
- 8.0.0
-
Field Summary
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
ConstructorsConstructorDescriptionCmsSimplePropertyEditor
(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 TypeMethodDescriptionprotected void
Method to add special, non-property fields.void
Builds and renders the fields for the properties.protected boolean
isAlwaysAllowEmpty
(String name) Checks whether an empty string should always be allowed for the property, regardless of validation settings.protected void
maybeAddCustomValidator
(org.opencms.xml.content.CmsXmlContentProperty propDef, I_CmsFormField field) Can be overridden by subclasses to customize field validators.protected void
Sets up the widget which will contain the input fields for the properties.Methods inherited from class org.opencms.gwt.client.property.A_CmsPropertyEditor
checkWidgetRequirements, createFormWidget, createUrlNameField, disableInput, getForm, getTitle, getUrlNameModel, initializeWidgets, message, setGhostValue, setPropertyNames, setUrlNameField, showUrlNameError
-
Constructor Details
-
CmsSimplePropertyEditor
public CmsSimplePropertyEditor(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
-
buildFields
Description copied from class:A_CmsPropertyEditor
Builds and renders the fields for the properties.- Specified by:
buildFields
in classA_CmsPropertyEditor
- See Also:
-
addSpecialFields
Description copied from class:A_CmsPropertyEditor
Method to add special, non-property fields.- Overrides:
addSpecialFields
in classA_CmsPropertyEditor
- See Also:
-
isAlwaysAllowEmpty
Checks whether an empty string should always be allowed for the property, regardless of validation settings.- Parameters:
name
- the property name- Returns:
- true if the empty string should always be allowed
-
maybeAddCustomValidator
protected void maybeAddCustomValidator(org.opencms.xml.content.CmsXmlContentProperty propDef, I_CmsFormField field) Can be overridden by subclasses to customize field validators.- Parameters:
propDef
- the property definition from which the field was createdfield
- the field
-
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:
-