|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModificationHandlerFactory
Defines a factory for creating ModificationHandler instances.
If an application wants to register its own event handler classes, it should do so using this class. This must be done during initialization to be fully thread-safe. There are two steps:
registerFactory
methods must be called on ObservableCollection
Method Summary | |
---|---|
ModificationHandler |
createHandler(Collection coll,
Object listener)
Creates a handler subclass for the specified listener. |
Method Detail |
---|
ModificationHandler createHandler(Collection coll, Object listener)
The implementation will normally check to see if the listener
is of a suitable type, and then cast it. null
is
returned if this factory does not handle the specified type.
The listener is defined in terms of an Object to allow for unusual listeners, such as a Swing model object.
The collection the handler is for is passed in to allow for a different handler to be selected for the same listener type based on the collection.
coll
- the collection being decoratedlistener
- a listener object to create a handler for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |