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.
-
AttributeList()
-
-
add(Attribute)
-
-
add(String, String, Object)
-
-
add(String, String, Object, int)
-
-
alias(String, String)
-
-
aliasKeys()
-
-
alphabetize(Enumeration)
- Returns an alphabetized enumeration of attributes.
-
attributesWithFlags(int)
- Returns an enumeration of attributes with the given flags.
-
attributesWithoutFlags(int)
- Returns an enumeration of attributes that do not have the given flags.
-
clone()
- Clones the attribute list.
-
contains(String)
-
-
elements()
- Returns an enumeration of all elements in the attribute list.
-
get(String)
-
-
merge(AttributeList)
- Merge the contents of the given list with this one.
-
remove(String)
-
-
resolveAlias(String)
-
-
size()
- Returns the number of elements in the attribute list.
-
toString()
-
AttributeList
public AttributeList()
add
public void add(Attribute attr)
add
public void add(String name,
String type,
Object defaultValue)
add
public void add(String name,
String type,
Object defaultValue,
int flags)
alias
public void alias(String name1,
String name2)
aliasKeys
public Enumeration aliasKeys()
resolveAlias
public String resolveAlias(String name)
remove
public void remove(String name)
get
public Attribute get(String name)
contains
public boolean contains(String name)
attributesWithFlags
public Enumeration attributesWithFlags(int flags)
- Returns an enumeration of attributes with the given flags.
attributesWithoutFlags
public Enumeration attributesWithoutFlags(int flags)
- Returns an enumeration of attributes that do not have the given flags.
elements
public Enumeration elements()
- Returns an enumeration of all elements in the attribute list.
size
public int size()
- Returns the number of elements in the attribute list.
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.
alphabetize
public static Enumeration alphabetize(Enumeration e)
- Returns an alphabetized enumeration of attributes.
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
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index