Class CmsUploadPropertyEditor
java.lang.Object
org.opencms.gwt.client.property.A_CmsPropertyEditor
org.opencms.gwt.client.property.CmsSimplePropertyEditor
org.opencms.ade.postupload.client.ui.CmsUploadPropertyEditor
- All Implemented Interfaces:
I_CmsFormWidgetMultiFactory
A property editor for the upload property dialog.
-
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
ConstructorsConstructorDescriptionCmsUploadPropertyEditor
(org.opencms.util.CmsUUID structureId, Map<String, org.opencms.xml.content.CmsXmlContentProperty> propConfig, I_CmsPropertyEditorHandler handler) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.CmsSimplePropertyEditor
addSpecialFields, buildFields
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
-
CmsUploadPropertyEditor
public CmsUploadPropertyEditor(org.opencms.util.CmsUUID structureId, Map<String, org.opencms.xml.content.CmsXmlContentProperty> propConfig, I_CmsPropertyEditorHandler handler) Creates a new instance.- Parameters:
propConfig
- the property configurationhandler
- the property editor handler to use
-
-
Method Details
-
isAlwaysAllowEmpty
Description copied from class:CmsSimplePropertyEditor
Checks whether an empty string should always be allowed for the property, regardless of validation settings.- Overrides:
isAlwaysAllowEmpty
in classCmsSimplePropertyEditor
- Parameters:
name
- the property name- Returns:
- true if the empty string should always be allowed
- See Also:
-
maybeAddCustomValidator
protected void maybeAddCustomValidator(org.opencms.xml.content.CmsXmlContentProperty propDef, I_CmsFormField field) Description copied from class:CmsSimplePropertyEditor
Can be overridden by subclasses to customize field validators.- Overrides:
maybeAddCustomValidator
in classCmsSimplePropertyEditor
- Parameters:
propDef
- the property definition from which the field was createdfield
- the field- See Also:
-
setupFieldContainer
Description copied from class:A_CmsPropertyEditor
Sets up the widget which will contain the input fields for the properties.- Overrides:
setupFieldContainer
in classCmsSimplePropertyEditor
- See Also:
-