public class CmsPropertySubmitHandler extends java.lang.Object implements I_CmsFormSubmitHandler
构造器和说明 |
---|
CmsPropertySubmitHandler(I_CmsPropertyEditorHandler handler)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
protected java.lang.String |
getAndRemoveValue(java.util.Map<java.lang.String,java.lang.String> map,
java.lang.String key)
Helper method which retrieves a value for a given key from a map and then deletes the entry for the key.
|
protected java.util.List<CmsPropertyModification> |
getPropertyChanges(java.util.Map<java.lang.String,java.lang.String> fieldValues)
Converts a map of field values to a list of property changes.
|
void |
onSubmitForm(CmsForm form,
java.util.Map<java.lang.String,java.lang.String> fieldValues,
java.util.Set<java.lang.String> editedFields)
The method which should be called when a
CmsForm is submitted. |
protected java.lang.String |
removeTabSuffix(java.lang.String fieldId)
Removes the tab suffix from a field id.
|
protected java.util.Set<java.lang.String> |
removeTabSuffixes(java.util.Collection<java.lang.String> fieldIds)
Removes the tab suffixes from each field id of a collection.
|
protected java.util.Map<java.lang.String,java.lang.String> |
removeTabSuffixes(java.util.Map<java.lang.String,java.lang.String> fieldValues)
Removes the tab suffixes from the keys of a map.
|
public CmsPropertySubmitHandler(I_CmsPropertyEditorHandler handler)
handler
- the property editor handlerpublic void onSubmitForm(CmsForm form, java.util.Map<java.lang.String,java.lang.String> fieldValues, java.util.Set<java.lang.String> editedFields)
I_CmsFormSubmitHandler
CmsForm
is submitted.The map passed as a parameter will contain key-value pairs where the key is the name of the field and the value is the value obtained from the field. It is explicitly allowed that the value is null; this means that the property is set to 'default'.
onSubmitForm
在接口中 I_CmsFormSubmitHandler
form
- the formfieldValues
- a map of field valueseditedFields
- the fields which have been editedI_CmsFormSubmitHandler.onSubmitForm(org.opencms.gwt.client.ui.input.form.CmsForm, java.util.Map, java.util.Set)
protected java.lang.String getAndRemoveValue(java.util.Map<java.lang.String,java.lang.String> map, java.lang.String key)
map
- the map from which to retrieve the valuekey
- the keyprotected java.util.List<CmsPropertyModification> getPropertyChanges(java.util.Map<java.lang.String,java.lang.String> fieldValues)
fieldValues
- the field valuesprotected java.lang.String removeTabSuffix(java.lang.String fieldId)
fieldId
- a field idprotected java.util.Set<java.lang.String> removeTabSuffixes(java.util.Collection<java.lang.String> fieldIds)
fieldIds
- the field ids from which to remove the tab suffixprotected java.util.Map<java.lang.String,java.lang.String> removeTabSuffixes(java.util.Map<java.lang.String,java.lang.String> fieldValues)
fieldValues
- a map of field values