nl.uva.vlet.util
Class VAttributeGroup

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<java.lang.String,VAttribute>
          extended by nl.uva.vlet.util.VAttributeSet
              extended by nl.uva.vlet.util.VAttributeGroup
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,VAttribute>

public class VAttributeGroup
extends VAttributeSet

An attribute group extends an attribute set by being able to have several attribute 'groups' as childs. An attribute group with no child groups is equal to an attribute set. The VAttributeGroup class is ment to hierarchically structure VAttributeSets.

See Also:
Serialized Form

Field Summary
protected  java.util.Vector<VAttributeGroup> groups
          child groups
protected  VAttributeGroup parent
          parent group, if contained in another VAttributeGroup
 
Constructor Summary
VAttributeGroup(java.lang.String name)
           
VAttributeGroup(VAttributeSet attrSet)
          Create group from set
 
Method Summary
 void addGroup(VAttributeGroup group)
          Add specified group to the child groups
 void addGroup(VAttributeSet attrSet)
           
 VAttributeGroup getGroup(java.lang.String name)
          Get group by name
 java.lang.String[] getGroupNames()
          Return names of groups
 java.util.Vector<VAttributeGroup> getGroups()
          return actual (non-copy) vector which contains child groups
 void setAttributes(VAttributeSet attrs)
          Set attribute to the specified ones
 
Methods inherited from class nl.uva.vlet.util.VAttributeSet
add, duplicate, getAttributeNames, getBooleanValue, getIntValue, getIntValue, getName, getValue, load, readFrom, set, set, set, set, setName, store, toArray, toString, toVector
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

groups

protected java.util.Vector<VAttributeGroup> groups
child groups


parent

protected VAttributeGroup parent
parent group, if contained in another VAttributeGroup

Constructor Detail

VAttributeGroup

public VAttributeGroup(java.lang.String name)

VAttributeGroup

public VAttributeGroup(VAttributeSet attrSet)
Create group from set

Method Detail

addGroup

public void addGroup(VAttributeGroup group)
Add specified group to the child groups


getGroups

public java.util.Vector<VAttributeGroup> getGroups()
return actual (non-copy) vector which contains child groups


getGroup

public VAttributeGroup getGroup(java.lang.String name)
Get group by name


getGroupNames

public java.lang.String[] getGroupNames()
Return names of groups


addGroup

public void addGroup(VAttributeSet attrSet)

setAttributes

public void setAttributes(VAttributeSet attrs)
Set attribute to the specified ones