|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides a mechanism for handling a set of Properties, each associated to a locally unique identifier. The interface is split into subinterfaces to enable a class to implement only the functionalities it needs.
Nested Class Summary | |
static interface |
Item.Editor
Interface implemented by the editor classes capable of editing the Item. |
static interface |
Item.PropertySetChangeEvent
An Event object specifying the Item whose contents
has been changed through the Property.Managed interface. |
static interface |
Item.PropertySetChangeListener
The listener interface for receiving PropertySetChangeEvent objects. |
static interface |
Item.PropertySetChangeNotifier
The interface for adding and removing PropertySetChangeEvent listeners. |
static interface |
Item.Viewer
Interface implemented by viewer classes capable of using an Item as a data source. |
Method Summary | |
boolean |
addItemProperty(java.lang.Object id,
Property property)
Tries to add a new Property into the 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. |
Method Detail |
public Property getItemProperty(java.lang.Object id)
null
is returned.
id
- identifier of the Property to get
null
public java.util.Collection getItemPropertyIds()
public boolean addItemProperty(java.lang.Object id, Property property) throws java.lang.UnsupportedOperationException
This functionality is optional.
id
- ID of the new Propertyproperty
- the Property to be added and associated with
id
true
if the operation succeeded,
false
if not
java.lang.UnsupportedOperationException
- if the operation is not supported.public boolean removeItemProperty(java.lang.Object id) throws java.lang.UnsupportedOperationException
This functionality is optional.
id
- ID of the Property to be removed
true
if the operation succeeded
false
if not
java.lang.UnsupportedOperationException
- if the operation is not supported.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |