|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.millstone.base.data.util.PropertysetItem
Class for handling a set of identified Properties. The elements contained in a MapItem can be referenced using locally unique identifiers. The class supports listeners who are interested in changes to the Property set managed by the class.
| Nested Class Summary |
| Nested classes inherited from class org.millstone.base.data.Item |
Item.Editor, Item.PropertySetChangeEvent, Item.PropertySetChangeListener, Item.PropertySetChangeNotifier, Item.Viewer |
| Constructor Summary | |
PropertysetItem()
|
|
| Method Summary | |
boolean |
addItemProperty(java.lang.Object id,
Property property)
Tries to add a new Property into the Item. |
void |
addListener(Item.PropertySetChangeListener listener)
Registers a new property set change listener for this Item. |
Property |
getItemProperty(java.lang.Object id)
Gets the Property corresponding to the given Property ID stored in the Item. |
java.util.Collection |
getItemPropertyIds()
Gets the collection of IDs of all Properties stored in the Item. |
boolean |
removeItemProperty(java.lang.Object id)
Removes the Property identified by ID from the Item. |
void |
removeListener(Item.PropertySetChangeListener listener)
Removes a previously registered property set change listener. |
java.lang.String |
toString()
Gets the String representation of the contents of
the Item. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PropertysetItem()
| Method Detail |
public Property getItemProperty(java.lang.Object id)
null is returned.
getItemProperty in interface Itemid - identifier of the Property to get
nullpublic java.util.Collection getItemPropertyIds()
getItemPropertyIds in interface Itempublic boolean removeItemProperty(java.lang.Object id)
false.
removeItemProperty in interface Itemid - ID of the Property to be removed
true if the operation succeeded
false if not
public boolean addItemProperty(java.lang.Object id,
Property property)
addItemProperty in interface Itemid - ID of the new Propertyproperty - the Property to be added and associated with
id
true if the operation succeeded,
false if notpublic java.lang.String toString()
String representation of the contents of
the Item. The format of the string is a space separated
catenation of the String representations of the
Properties contained by the Item.
toString in class java.lang.ObjectString representation of the Item contentspublic void addListener(Item.PropertySetChangeListener listener)
addListener in interface Item.PropertySetChangeNotifierlistener - The new Listener to be registered.public void removeListener(Item.PropertySetChangeListener listener)
removeListener in interface Item.PropertySetChangeNotifierlistener - Listener to be removed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||