T
- public class OwSimplePropertyGroup<T extends OwPropertyInfo> extends Object implements OwPropertyGroup<T>
Simple implementation of OwPropertyGroup
.
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
Constructor and Description |
---|
OwSimplePropertyGroup(String groupId,
String groupDisplayName,
List<T> propertyInfos)
Constructor
|
OwSimplePropertyGroup(String groupId,
String groupDisplayName,
List<T> propertyInfos,
boolean isCollapsed)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getDisplayName(OwAppContext context)
Get the group display name.
|
String |
getGroupId()
Return an unique group Id, in case multiple groups available.
|
List<T> |
getProperties()
Return grouped properties.
|
boolean |
isCollapsed()
Check state of group.
|
void |
setCollapsed(boolean isCollapsed)
Set collapse state of Group.
|
public OwSimplePropertyGroup(String groupId, String groupDisplayName, List<T> propertyInfos)
groupId
- - the group idgroupDisplayName
- - the group display namepropertyInfos
- - a List
of OwPropertyInfo
objects.public OwSimplePropertyGroup(String groupId, String groupDisplayName, List<T> propertyInfos, boolean isCollapsed)
groupId
- - the group idgroupDisplayName
- - the group display namepropertyInfos
- - a List
of OwPropertyInfo
objects.isCollapsed
- - collapsed statuspublic String getGroupId()
OwPropertyGroup
getGroupId
in interface OwPropertyGroup<T extends OwPropertyInfo>
public List<T> getProperties()
OwPropertyGroup
getProperties
in interface OwPropertyGroup<T extends OwPropertyInfo>
List
of OwPropertyInfo
objects.public String getDisplayName(OwAppContext context)
getDisplayName
in interface OwPropertyGroup<T extends OwPropertyInfo>
context
- - the context.getGroupId()
, or the configured display namepublic void setCollapsed(boolean isCollapsed)
OwPropertyGroup
setCollapsed
in interface OwPropertyGroup<T extends OwPropertyInfo>
isCollapsed
- booleanOwPropertyGroup.isCollapsed()
public boolean isCollapsed()
OwPropertyGroup
isCollapsed
in interface OwPropertyGroup<T extends OwPropertyInfo>
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.