public abstract class OwSettingsPropertyBagWrapper extends OwSettingsPropertyControl
Base class for property controls that display a set of named settings.
For each entry a menu button is displayed and the specified control will
be shown embedded when selecting the menu. e.g. used to configure column settings for several Views in BPM.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
ITEM_VALUE_NODE
Constructor and Description |
---|
OwSettingsPropertyBagWrapper() |
Modifier and Type | Method and Description |
---|---|
protected Object |
createSingleClonedValue(Object oSingleValue_p)
create a clone out of the given single property value
|
String |
getDisplayName()
get display name of property
|
String |
getName()
get ID of property
|
String |
getSafePropertyError()
gets a error message for this field, if update failed, clears the message automatically
|
Object |
getValue()
get current value of property
|
Node |
getValueNode(Document doc_p)
return the property value as a DOM Node for serialization
|
protected void |
init()
init the target after the context is set.
|
void |
init(Node propertyDefinitionNode_p,
Node valueNode_p,
String strSetName_p)
set current value of property, to be overridden
|
void |
insertFormField(Writer w_p)
insert the property into a HTML form for editing
|
boolean |
isEditable()
get flag indicating if property can be edited
|
boolean |
isModified()
true = value was modified, false otherwise
|
boolean |
isUser()
get flag indicating if property can be edited
|
void |
setDefault()
set the default value
|
void |
setValue(Object value_p)
set current value of property, to be overridden
|
getHelpPath, getPropertyError, hasError, insertLabel
attach, detach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getFormName, getFormTarget, getID, onExternalRequest, onFormEvent, onRequest, setExternalFormTarget, updateExternalFormTarget
public String getDisplayName()
OwSettingsPropertyControl
getDisplayName
in class OwSettingsPropertyControl
protected Object createSingleClonedValue(Object oSingleValue_p)
OwSettingsPropertyControl
createSingleClonedValue
in class OwSettingsPropertyControl
oSingleValue_p
- single Object valuepublic void insertFormField(Writer w_p) throws Exception
OwSettingsPropertyControl
insertFormField
in class OwSettingsPropertyControl
w_p
- Writer to write HTML code toException
public String getSafePropertyError()
OwSettingsPropertyControl
getSafePropertyError
in class OwSettingsPropertyControl
public boolean isModified()
OwSettingsPropertyControl
isModified
in class OwSettingsPropertyControl
protected void init() throws Exception
OwEventTarget
init
in class OwEventTarget
Exception
public void setDefault()
OwSettingsProperty
public Node getValueNode(Document doc_p)
OwSettingsProperty
doc_p
- DOM Document to add topublic boolean isUser()
OwSettingsProperty
public boolean isEditable()
OwSettingsProperty
public String getName()
OwSettingsProperty
public void init(Node propertyDefinitionNode_p, Node valueNode_p, String strSetName_p) throws Exception
OwSettingsProperty
propertyDefinitionNode_p
- the node which defines the property in the plugin descriptors settingvalueNode_p
- the node with the current valuestrSetName_p
- name of the property set for which the property is createdException
public Object getValue()
OwSettingsProperty
public void setValue(Object value_p)
OwSettingsProperty
value_p
- ObjectCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.