|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.option.OptionGroup
public class OptionGroup
This class bundles a set of OptionItem
objects.
Field Summary | |
---|---|
static java.lang.String |
ATTRIBUTE_TITLE
Attribute key used to store a title String . |
Constructor Summary | |
---|---|
OptionGroup()
Creates a new OptionGroup instance. |
Method Summary | |
---|---|
OptionItem |
addItem(OptionItem item)
Adds an option item to this option group. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Adds a PropertyChangeListener to the listener list. |
void |
addPropertyChangeListener(java.lang.String propertyname,
java.beans.PropertyChangeListener pcl)
Adds a PropertyChangeListener to the listener list for a specific property. |
boolean |
containsItem(OptionItem item)
Returns true if this group contains the specified option item. |
java.lang.Object |
getAttribute(java.lang.String name)
Returns the value of the attribute with the specified name. |
java.util.Iterator |
items()
Returns a read-only iterator over all option items belonging to this option group. |
void |
removeAttribute(java.lang.String name)
Removes the attribute with the specified name. |
void |
removeItem(OptionItem item)
Removes an option item from this option group. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Removes a PropertyChangeListener from the listener list. |
void |
removePropertyChangeListener(java.lang.String propertyname,
java.beans.PropertyChangeListener pcl)
Removes a PropertyChangeListener from the listener list for a specific property. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets an arbitrary attribute with the specified name and value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ATTRIBUTE_TITLE
String
.
Constructor Detail |
---|
public OptionGroup()
Method Detail |
---|
public OptionItem addItem(OptionItem item)
item
- the OptionItem
to add
OptionItem
public void removeItem(OptionItem item)
item
- the OptionItem
to removepublic boolean containsItem(OptionItem item)
true
if this group contains the specified option item.
item
- the OptionItem
whose presence in this group is
to be tested
true
if this group contains the specified option itempublic java.util.Iterator items()
Iterator
over all option items belonging
to this option grouppublic java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface AttributeOwner
name
- the name of the attribute being queried
setAttribute(String, Object)
public void removeAttribute(java.lang.String name)
PropertyChange
events.
removeAttribute
in interface AttributeOwner
name
- the name of the attribute being removedsetAttribute(String, Object)
public void setAttribute(java.lang.String name, java.lang.Object value)
null
, this method will remove the attribute.
PropertyChange
events.
setAttribute
in interface AttributeOwner
name
- the name of the attribute being addedvalue
- the value of the attribute being addedgetAttribute(String)
,
removeAttribute(String)
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
addPropertyChangeListener
in interface PropertyChangeReporter
pcl
- the PropertyChangeListener to be addedremovePropertyChangeListener(java.beans.PropertyChangeListener)
,
addPropertyChangeListener(String,java.beans.PropertyChangeListener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
removePropertyChangeListener
in interface PropertyChangeReporter
pcl
- the PropertyChangeListener to be removedaddPropertyChangeListener(java.beans.PropertyChangeListener)
,
removePropertyChangeListener(String,java.beans.PropertyChangeListener)
public void addPropertyChangeListener(java.lang.String propertyname, java.beans.PropertyChangeListener pcl)
addPropertyChangeListener
in interface PropertyChangeReporter
propertyname
- the name of the property to receive change
notifications forpcl
- the PropertyChangeListener to be addedaddPropertyChangeListener(java.beans.PropertyChangeListener)
,
removePropertyChangeListener(String,java.beans.PropertyChangeListener)
public void removePropertyChangeListener(java.lang.String propertyname, java.beans.PropertyChangeListener pcl)
removePropertyChangeListener
in interface PropertyChangeReporter
propertyname
- a valid property namepcl
- the PropertyChangeListener to be removedaddPropertyChangeListener(String,java.beans.PropertyChangeListener)
,
removePropertyChangeListener(java.beans.PropertyChangeListener)
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |