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
collapsed
public static final String ATT_ID
id
public static final String ATT_READONLY
readonly
public static final String ATT_DISPLAY_NAME
displayname
public static final String ELEM_ROOT_NODE
EditPropertyList
public static final String ELEM_PROPERTY_GROUP
PropertyGroups
public static final String ELEM_PROPERTY
property
public 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
- OwConfigurationException
protected OwPropertyInfo buildPropertyInfo(OwXMLUtil conf) throws OwConfigurationException
OwConfigurationException
protected OwPropertyGroup<OwPropertyInfo> buildPropertyGroup(OwXMLUtil conf) throws OwConfigurationException
OwConfigurationException
public 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.