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 booleanisAlwaysAllowEmpty(String name) Checks whether an empty string should always be allowed for the property, regardless of validation settings.protected voidmaybeAddCustomValidator(org.opencms.xml.content.CmsXmlContentProperty propDef, I_CmsFormField field) Can be overridden by subclasses to customize field validators.protected voidSets up the widget which will contain the input fields for the properties.Methods inherited from class org.opencms.gwt.client.property.CmsSimplePropertyEditor
addSpecialFields, buildFieldsMethods 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:CmsSimplePropertyEditorChecks whether an empty string should always be allowed for the property, regardless of validation settings.- Overrides:
isAlwaysAllowEmptyin 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:CmsSimplePropertyEditorCan be overridden by subclasses to customize field validators.- Overrides:
maybeAddCustomValidatorin classCmsSimplePropertyEditor- Parameters:
propDef- the property definition from which the field was createdfield- the field- See Also:
-
setupFieldContainer
Description copied from class:A_CmsPropertyEditorSets up the widget which will contain the input fields for the properties.- Overrides:
setupFieldContainerin classCmsSimplePropertyEditor- See Also:
-