Class sunsoft.jws.visual.rt.base.AttributeList
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sunsoft.jws.visual.rt.base.AttributeList

java.lang.Object
   |
   +----sunsoft.jws.visual.rt.base.AttributeList

public class AttributeList
extends Object
implements Cloneable
Class for storing information about the attributes available on a particular type of GUI object.

Constructor Index

 o AttributeList()

Method Index

 o add(Attribute)
 o add(String, String, Object)
 o add(String, String, Object, int)
 o alias(String, String)
 o aliasKeys()
 o alphabetize(Enumeration)
Returns an alphabetized enumeration of attributes.
 o attributesWithFlags(int)
Returns an enumeration of attributes with the given flags.
 o attributesWithoutFlags(int)
Returns an enumeration of attributes that do not have the given flags.
 o clone()
Clones the attribute list.
 o contains(String)
 o elements()
Returns an enumeration of all elements in the attribute list.
 o get(String)
 o merge(AttributeList)
Merge the contents of the given list with this one.
 o remove(String)
 o resolveAlias(String)
 o size()
Returns the number of elements in the attribute list.
 o toString()

Constructors

 o AttributeList
  public AttributeList()

Methods

 o add
  public void add(Attribute attr)
 o add
  public void add(String name,
                  String type,
                  Object defaultValue)
 o add
  public void add(String name,
                  String type,
                  Object defaultValue,
                  int flags)
 o alias
  public void alias(String name1,
                    String name2)
 o aliasKeys
  public Enumeration aliasKeys()
 o resolveAlias
  public String resolveAlias(String name)
 o remove
  public void remove(String name)
 o get
  public Attribute get(String name)
 o contains
  public boolean contains(String name)
 o attributesWithFlags
  public Enumeration attributesWithFlags(int flags)
Returns an enumeration of attributes with the given flags.
 o attributesWithoutFlags
  public Enumeration attributesWithoutFlags(int flags)
Returns an enumeration of attributes that do not have the given flags.
 o elements
  public Enumeration elements()
Returns an enumeration of all elements in the attribute list.
 o size
  public int size()
Returns the number of elements in the attribute list.
 o merge
  public void merge(AttributeList list)
Merge the contents of the given list with this one. New elements by the same name will overwrite old ones. Attributes are cloned before merging with this list.
 o alphabetize
  public static Enumeration alphabetize(Enumeration e)
Returns an alphabetized enumeration of attributes.
 o clone
  public Object clone()
Clones the attribute list. The attributes in the list are cloned, but the attribute's value is not cloned (see the comment for the clone method in Attribute).
Overrides:
clone in class Object
See Also:
Attribute
 o toString
  public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index