|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
com.tarantella.tta.webservices.client.views.WebtopGroup
public class WebtopGroup
The WebtopGroup class manages a group of assigned applications, typically used by user-defined preferences.
A assigned applications group consists of members and attributes that
control its display, for example, whether it should be shown and whether
it should be expanded or collapsed. It is used by
WebtopGroupContainer
and WebtopViewBean
.
Constructor Summary | |
---|---|
WebtopGroup()
Constructor. |
|
WebtopGroup(java.lang.String name)
Constructor. |
|
WebtopGroup(java.lang.String name,
boolean isCollapsed)
Constructor. |
|
WebtopGroup(java.lang.String name,
boolean isCollapsed,
boolean isShown)
Constructor. |
Method Summary | |
---|---|
boolean |
addMember(java.lang.String member)
Adds a member to the group. |
boolean |
addMember(java.lang.String member,
int location)
Adds a member to the group at a specific location. |
boolean |
addMembers(java.lang.String[] members)
Adds members to the group. |
boolean |
containsMember(java.lang.String name)
Tests if the group contains the named member. |
boolean |
dump(java.lang.StringBuffer buffer)
Dumps members. |
int |
findMember(java.lang.String name)
Finds the location of the named member. |
int |
getMemberCount()
Gets the number of members in the group. |
java.lang.String[] |
getMembers()
Gets the group members. |
java.lang.String |
getName()
Gets the name of the group. |
boolean |
isCollapsed()
Gets the open/closed state of the group. |
boolean |
isShown()
Gets the visibility of the group. |
boolean |
load(java.lang.String data)
Loads members. |
boolean |
moveMember(java.lang.String name,
int location)
Moves a member of the group to a specific location. |
boolean |
removeMember(int location)
Removes a member of the group from a specific location. |
boolean |
removeMember(java.lang.String name)
Removes a named member of the group. |
boolean |
replaceGroupMembers(java.lang.String[] members)
Replaces all group members. |
void |
setCollapsed(boolean state)
Sets the open/closed state of the group. |
void |
setName(java.lang.String name)
Sets the name of the group. |
void |
setShown(boolean state)
Sets the visibility of the group. |
Methods inherited from class java.util.Vector |
---|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
iterator, listIterator, listIterator |
Constructor Detail |
---|
public WebtopGroup()
public WebtopGroup(java.lang.String name)
name
- The name of the group.public WebtopGroup(java.lang.String name, boolean isCollapsed)
name
- The name of the group.isCollapsed
- Flag controlling the open/closed state of the group.
true | the group is initially closed/collapsed |
false | the group is initially open |
public WebtopGroup(java.lang.String name, boolean isCollapsed, boolean isShown)
name
- The name of the group.isCollapsed
- Flag controlling the open/closed state of the group.
true | the group is initially closed/collapsed |
false | the group is initially open |
isShown
- Flag controlling the visibility of the group.
true | the group is initially visible/shown |
false | the group is initially not shown |
Method Detail |
---|
public java.lang.String getName()
public boolean isCollapsed()
true | group is closed/collapsed |
false | group is open |
public boolean isShown()
true | group is visible/shown |
false | group is not shown |
public void setName(java.lang.String name)
name
- The name of the group.public void setCollapsed(boolean state)
state
- The open/closed state of the group.
true | state is closed/collapsed |
false | state is open |
public void setShown(boolean state)
state
- The visibility of the group.
true | state is visible/shown |
false | state is not shown |
public boolean replaceGroupMembers(java.lang.String[] members)
members
- The new group members.
true | members replaced |
false | members not replaced |
public java.lang.String[] getMembers()
public boolean addMember(java.lang.String member)
member
- The new member.
true | member added |
false | member not added |
public boolean addMember(java.lang.String member, int location)
member
- The new member.location
- The location at which the member is added.
true | member added |
false | member not added |
public int getMemberCount()
public boolean moveMember(java.lang.String name, int location)
name
- The name of the member.location
- The destination location.
true | member moved |
false | member not moved |
public boolean removeMember(int location)
location
- The location of the member to be removed.
true | member removed |
false | member not removed |
public boolean removeMember(java.lang.String name)
name
- The name of the member to be removed.
true | member removed |
false | member not removed |
public boolean addMembers(java.lang.String[] members)
members
- Members to be added.
true | members added |
false | members not added |
public boolean load(java.lang.String data)
data
- Data containing members. Created by dump(StringBuffer)
.
true | members loaded |
false | members not loaded |
public boolean dump(java.lang.StringBuffer buffer)
buffer
- Buffer for members. Can be read by load(String)
.
true | members dumped |
false | members not dumped |
public boolean containsMember(java.lang.String name)
name
- The name of the desired member.
true | group contains named member |
false | group does not contain named member |
public int findMember(java.lang.String name)
name
- The name of the desired member.
-1 | named member does not exist, or |
the location of the named member |
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |