|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SimpleSelectable
This the interface that all selectable objects expose.
Applications programmers should treat this API as temporary, for now. A SimpleSelectable object can register SimpleSelector objects so that they are notified whenever this object chooses to report a change. SimpleSelectors are SimpleSelectable, therefore selectors can be selected. The change notification interface used to notify a selector is actually specified in SimpleSelectable. As a result, certain implementations may also allow to register SimpleSelectables that are not Selectors. Selectors themselves do not allow that.
SimpleSelector
,
AbstractSimpleSelectable
Nested Class Summary | |
---|---|
static class |
SimpleSelectable.IdentityReference
A simple reference object that can be put in a map instead of the one it refers to. |
Method Summary | |
---|---|
SimpleSelectable.IdentityReference |
getIdentityReference()
|
void |
itemChanged(SimpleSelectable changedObject)
This method is invoked when the given selectable object has changed. |
void |
register(SimpleSelector s)
Registers the given selector with this selectable object. |
void |
unregister(SimpleSelector s)
Unregisters the given selector, so that it is no-longer notified when this object changes. |
Method Detail |
---|
SimpleSelectable.IdentityReference getIdentityReference()
void register(SimpleSelector s)
s
- The SimpleSelector to registervoid unregister(SimpleSelector s)
s
- The SimpleSelector to unregistervoid itemChanged(SimpleSelectable changedObject)
SimpleSelector
will report the change to
SimpleSelector.select()
and invoke
AbstractSimpleSelectable.notifyChange()
thereby reporting its own
change to cascaded selectors. Other implementations may only invoke
AbstractSimpleSelectable.notifyChange()
or may perform more
complex tasks.
changedObject
- the object that has changed.AbstractSimpleSelectable
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |