public class OwPropertyListConfiguration extends Object
PropertyGroups and PropertyList configuration object representation. Can contain a restricted list of properties and/or additionally a grouping of properties which should be shown.
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
| Modifier and Type | Field and Description |
|---|---|
static String |
ATT_COLLAPSED
the configuration attribute
collapsed |
static String |
ATT_DISPLAY_NAME
the configuration attribute
displayname |
static String |
ATT_ID
the configuration attribute
id |
static String |
ATT_READONLY
the configuration attribute
readonly |
static String |
ELEM_PROPERTY
the configuration element
property |
static String |
ELEM_PROPERTY_GROUP
the configuration element
PropertyGroups |
static String |
ELEM_ROOT_NODE
Default root configuration node name
EditPropertyList |
| Constructor and Description |
|---|
OwPropertyListConfiguration() |
OwPropertyListConfiguration(String groupIdPrefix) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRegion(OwPropertySubregion<OwPropertyInfo> region)
Use to add region to this configuration.
|
void |
build(OwXMLUtil configuration)
Initialize/build instance from provided configuration.
|
protected OwPropertyGroup<OwPropertyInfo> |
buildPropertyGroup(OwXMLUtil conf) |
protected OwPropertyInfo |
buildPropertyInfo(OwXMLUtil conf) |
protected <T extends OwPropertyInfo> |
createSubRegion(List<T> propInfos)
create a non-grouped subregion instance.
|
protected <T extends OwPropertyInfo> |
createSubRegion(OwPropertyGroup<T> propGroup)
Create a grouped subregion instance.
|
String |
getGroupIdPrefix()
Get a prefix which should be attached to GroupId.
null defines to keep the PropertyGroupId as is. |
OwPropertySubregion<OwPropertyInfo> |
getGroupRegion(String groupId)
Get the subregion for specific groupId
|
List<OwPropertySubregion<OwPropertyInfo>> |
getSubregions()
Returns a list of Regions configured for rendering.
|
public static final String ATT_COLLAPSED
collapsedpublic static final String ATT_ID
idpublic static final String ATT_READONLY
readonlypublic static final String ATT_DISPLAY_NAME
displaynamepublic static final String ELEM_ROOT_NODE
EditPropertyListpublic static final String ELEM_PROPERTY_GROUP
PropertyGroupspublic static final String ELEM_PROPERTY
propertypublic OwPropertyListConfiguration()
public OwPropertyListConfiguration(String groupIdPrefix)
public List<OwPropertySubregion<OwPropertyInfo>> getSubregions()
OwPropertySubregion objects.public OwPropertySubregion<OwPropertyInfo> getGroupRegion(String groupId)
groupId - Stringpublic void addRegion(OwPropertySubregion<OwPropertyInfo> region)
getGroupRegion(String).region - OwPropertySubregionpublic void build(OwXMLUtil configuration) throws OwConfigurationException
configuration - OwConfigurationExceptionprotected OwPropertyInfo buildPropertyInfo(OwXMLUtil conf) throws OwConfigurationException
OwConfigurationExceptionprotected OwPropertyGroup<OwPropertyInfo> buildPropertyGroup(OwXMLUtil conf) throws OwConfigurationException
OwConfigurationExceptionpublic String getGroupIdPrefix()
null defines to keep the PropertyGroupId as is.protected <T extends OwPropertyInfo> OwPropertySubregion<T> createSubRegion(List<T> propInfos)
propInfos - List of OwPropertyInfoprotected <T extends OwPropertyInfo> OwPropertySubregion<T> createSubRegion(OwPropertyGroup<T> propGroup)
propGroup - OwPropertyGroupCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.