TMUpdaterConcrete
| Kind of class: | (package private) class |
|---|---|
| Package: | treemap |
| Inherits from: | Observable |
| Implements: | |
| Version: | 2.5 |
| Author: | Christophe Bouthier [bouthier@loria.fr] |
| Package classpath: | treemap.TMUpdaterConcrete |
| File last modified: | Friday, 28 December 2001, 20:32:44 |
The TMUpdaterConcrete is responsible for propagating changes in the TMNodes
(user's node objets) to all views.
For this, it extends java.util.Observable (Observer design pattern).
(user's node objets) to all views.
For this, it extends java.util.Observable (Observer design pattern).
For the user, the TMUpdaterConcrete is seen as a TMUpdater interface.
It's the Bridge design pattern.
Summary
Constructors
- TMUpdaterConcrete
- Constructor.
Instance fields
Instance methods
- setUpdater
- Sets the updater of the given node and of
- getRoot
- Returns the root of the TMNode tree encapsulated.
- updateSize
- To be called when the user node has its size changed.
- updateState
- To be called when the user node has its state changed.
- addChild
- To be called when the user node has a new child.
- removeChild
- To be called when the user node removes a child.
Constructors
TMUpdaterConcrete
Constructor.
Goes throught the TMNode tree and call
each TMNode's setUpdater() method with itself
as parameter.
Goes throught the TMNode tree and call
each TMNode's setUpdater() method with itself
as parameter.
Parameters:
node:
the root of the TMNode tree
Instance fields
root
private TMNode root = null
Instance methods
addChild
To be called when the user node has a new child.
Parameters:
node :
the node that has a new child
child:
the node's new child
Specified by:
getRoot
Returns the root of the TMNode tree encapsulated.
Returns:
- the root of the TMNode tree
removeChild
To be called when the user node removes a child.
Parameters:
node :
the node that removes a child
child:
the node's lost child
Specified by:
setUpdater
Sets the updater of the given node and of
all its child to be this TMUpdaterConcrete object.
all its child to be this TMUpdaterConcrete object.
Parameters:
node:
the root of the TMNode tree to set updater on
updateSize
To be called when the user node has its size changed.
Parameters:
node:
the node that has its size changed
Specified by:
updateState
To be called when the user node has its state changed.
Parameters:
node:
the node that has its state changed
Specified by: