|
|||||||||
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.WebtopGroupContainer
public class WebtopGroupContainer
The WebtopGroupContainer class manages personalised grouping of assigned
applications. The groups can be applied to the generateView...
methods on WebtopViewBean
to modify the view.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_GROUP_NAME
Name of the default group (ungrouped content). |
Constructor Summary | |
---|---|
WebtopGroupContainer()
Constructor. |
|
WebtopGroupContainer(java.lang.String name)
Constructor. |
Method Summary | |
---|---|
int |
addGroup(WebtopGroup group)
Adds a new group to the container. |
int |
addGroup(WebtopGroup group,
int location)
Adds a new group to the container. |
void |
clear()
Clears the contents. |
boolean |
copyFrom(WebtopGroupContainer source)
Replaces the contents of the container with those from another. |
Item[] |
dumpPreferences()
Gets the data to store as preferences. |
WebtopGroup |
getDefaultGroup()
Gets the default group. |
WebtopGroup |
getGroup(int location)
Gets the group at the specified location. |
int |
getGroupCount()
Gets the number of groups in the container. |
java.lang.String |
getName()
Gets the name of the container. |
java.lang.String[] |
getPreferences()
Gets the preferences used to store the groupings. |
boolean |
getValid()
Gets the valid flag. |
void |
loadPreferences(java.lang.String xml)
Loads the data in the XML. |
boolean |
removeGroup(int location)
Removes the group at the specified location. |
void |
setName(java.lang.String name)
Sets the name of the container. |
void |
setValid(boolean b)
Sets the valid flag. |
void |
stampIt()
Burns a timestamp into the container. |
boolean |
stampsDiffer(WebtopGroupContainer other)
Tests if the timestamps in the containers are the same. |
Methods inherited from class java.util.Vector |
---|
add, add, addAll, addAll, addElement, capacity, 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 |
Field Detail |
---|
public static final java.lang.String DEFAULT_GROUP_NAME
Constructor Detail |
---|
public WebtopGroupContainer()
public WebtopGroupContainer(java.lang.String name)
name
- The name of the assigned applications groupings container.Method Detail |
---|
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.List
clear
in class java.util.Vector
public java.lang.String[] getPreferences()
public void loadPreferences(java.lang.String xml)
WebtopGroup
groupings are created.
xml
- XML representation of the data.public Item[] dumpPreferences()
public int addGroup(WebtopGroup group)
group
- The assigned applications group.
public int addGroup(WebtopGroup group, int location)
group
- The assigned applications group.location
- The location/index where the group should be stored.
public boolean removeGroup(int location)
location
- The location/index of the group to be remove.
true | group successfully removed |
false | group not removed |
public WebtopGroup getGroup(int location)
location
- The location/index of the group to be retrieved.
public int getGroupCount()
public boolean copyFrom(WebtopGroupContainer source)
source
- The source container.
true | contents successfully copied |
false | contents not copied |
public void stampIt()
public boolean stampsDiffer(WebtopGroupContainer other)
other
- The other container.
true | timestamps differ |
false | timestamps are the same |
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to set on the assigned applications group container.public WebtopGroup getDefaultGroup()
public boolean getValid()
public void setValid(boolean b)
b
- New valid flag value.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |