|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Item
Provides a mechanism for handling a set of Properties, each associated to a locally unique non-null 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 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(Object id,
Property property)
Tries to add a new Property into the Item. |
Property |
getItemProperty(Object id)
Gets the Property corresponding to the given Property ID stored in the Item. |
Collection<?> |
getItemPropertyIds()
Gets the collection of IDs of all Properties stored in the Item. |
boolean |
removeItemProperty(Object id)
Removes the Property identified by ID from the Item. |
Method Detail |
---|
Property getItemProperty(Object id)
null
is
returned.
id
- identifier of the Property to get
null
Collection<?> getItemPropertyIds()
boolean addItemProperty(Object id, Property property) throws UnsupportedOperationException
This functionality is optional.
id
- ID of the new Propertyproperty
- the Property to be added and associated with the id
true
if the operation succeeded, false
if not
UnsupportedOperationException
- if the operation is not supported.boolean removeItemProperty(Object id) throws UnsupportedOperationException
This functionality is optional.
id
- ID of the Property to be removed
true
if the operation succeeded
UnsupportedOperationException
- if the operation is not supported. false
if not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |