|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jpt.utility.model.listener.SimpleChangeListener
public abstract class SimpleChangeListener
Convenience abstract implementation of ChangeListener.
All change notifications are funneled through a single method.
This class can be used by
subclassing it and overriding either modelChanged(ChangeEvent)
(if access to the event is required) or modelChanged() (if access
to the event is not required).
Provisional API: This class is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
| Constructor Summary | |
|---|---|
SimpleChangeListener()
|
|
| Method Summary | |
|---|---|
void |
collectionChanged(CollectionChangeEvent event)
This method gets called when a bound collection is changed in a manner that is not easily characterized by the other methods in this interface. |
void |
collectionCleared(CollectionClearEvent event)
This method gets called when a bound collection is cleared. |
void |
itemsAdded(CollectionAddEvent event)
This method gets called when items are added to a bound collection. |
void |
itemsAdded(ListAddEvent event)
This method gets called when items are added to a bound list. |
void |
itemsMoved(ListMoveEvent event)
This method gets called when items in a bound list are moved. |
void |
itemsRemoved(CollectionRemoveEvent event)
This method gets called when items are removed from a bound collection. |
void |
itemsRemoved(ListRemoveEvent event)
This method gets called when items are removed from a bound list. |
void |
itemsReplaced(ListReplaceEvent event)
This method gets called when items in a bound list are replaced. |
void |
listChanged(ListChangeEvent event)
This method gets called when a bound list is changed in a manner that is not easily characterized by the other methods in this interface. |
void |
listCleared(ListClearEvent event)
This method gets called when a bound list is cleared. |
void |
nodeAdded(TreeAddEvent event)
This method gets called when a node is added to a bound tree. |
void |
nodeRemoved(TreeRemoveEvent event)
This method gets called when a node is removed from a bound tree. |
void |
propertyChanged(PropertyChangeEvent event)
This method gets called when a model has changed a bound property. |
void |
stateChanged(StateChangeEvent event)
This method gets called when a model has changed in some general fashion. |
void |
treeChanged(TreeChangeEvent event)
This method gets called when a portion of a bound tree is changed in a manner that is not easily characterized by the other methods in this interface. |
void |
treeCleared(TreeClearEvent event)
This method gets called when a bound tree is cleared. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleChangeListener()
| Method Detail |
|---|
public void stateChanged(StateChangeEvent event)
StateChangeListener
stateChanged in interface StateChangeListenerevent - An event describing the event source.public void propertyChanged(PropertyChangeEvent event)
PropertyChangeListener
propertyChanged in interface PropertyChangeListenerevent - An event describing the event source
and the property's old and new values.public void collectionChanged(CollectionChangeEvent event)
CollectionChangeListener
collectionChanged in interface CollectionChangeListenerevent - An event describing the event source
and the collection that changed.public void collectionCleared(CollectionClearEvent event)
CollectionChangeListener
collectionCleared in interface CollectionChangeListenerevent - An event describing the event source
and the collection that changed.public void itemsAdded(CollectionAddEvent event)
CollectionChangeListener
itemsAdded in interface CollectionChangeListenerevent - An event describing the event source,
the collection that changed, and the items that were added.public void itemsRemoved(CollectionRemoveEvent event)
CollectionChangeListener
itemsRemoved in interface CollectionChangeListenerevent - An event describing the event source,
the collection that changed, and the items that were removed.public void itemsAdded(ListAddEvent event)
ListChangeListener
itemsAdded in interface ListChangeListenerevent - An event describing the event source,
the list that changed, the items that were added, and the index
at which the items were added.public void itemsMoved(ListMoveEvent event)
ListChangeListener
itemsMoved in interface ListChangeListenerevent - An event describing the event source,
the list that changed, and the indices of where items were moved
from and to.public void itemsRemoved(ListRemoveEvent event)
ListChangeListener
itemsRemoved in interface ListChangeListenerevent - An event describing the event source,
the list that changed, the items that were removed, and the index
at which the items were removed.public void itemsReplaced(ListReplaceEvent event)
ListChangeListener
itemsReplaced in interface ListChangeListenerevent - An event describing the event source,
the list that changed, the items that were added, the items that were
replaced, and the index at which the items were replaced.public void listChanged(ListChangeEvent event)
ListChangeListener
listChanged in interface ListChangeListenerevent - A ListChangeEvent object describing the event source
and the list that changed.public void listCleared(ListClearEvent event)
ListChangeListener
listCleared in interface ListChangeListenerevent - A ListClearEvent object describing the event source
and the list that changed.public void nodeAdded(TreeAddEvent event)
TreeChangeListener
nodeAdded in interface TreeChangeListenerevent - An event describing the event source,
the tree that changed, and the path to the node that was added.public void nodeRemoved(TreeRemoveEvent event)
TreeChangeListener
nodeRemoved in interface TreeChangeListenerevent - An event describing the event source,
the tree that changed, and the path to the node that was removed.public void treeChanged(TreeChangeEvent event)
TreeChangeListener
treeChanged in interface TreeChangeListenerevent - An event describing the event source,
the tree that changed, and the current state of the
tree that changed.public void treeCleared(TreeClearEvent event)
TreeChangeListener
treeCleared in interface TreeChangeListenerevent - An event describing the event source,
the tree that changed, and an empty path.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||