Public Member Functions | |
SummaryTreeModel () | |
void | addTreeModelListener (TreeModelListener listener) |
void | removeTreeModelListener (TreeModelListener listener) |
Object | getChild (Object parent, int index) |
int | getChildCount (Object parent) |
int | getIndexOfChild (Object parent, Object child) |
Object | getRoot () |
boolean | isLeaf (Object node) |
void | valueForPathChanged (TreePath path, Object value) |
void | addSummaries (String name, CompleteSummary[] summaries) |
void | addSummaries (String name, SummaryReader summaries) |
void | removeNode (Object node) |
List< CompleteSummary > | getAllSummaries () |
Private Member Functions | |
void | notifyListeners (Object parent) |
void | notifyListeners () |
Private Attributes | |
SummariesSet | root |
EventListenerList | listeners |
Classes | |
class | SummariesSet |
class | SummarySet |
TreeModel
which displays a number of summaries.
tit.summary.io.SummaryTreeModel.SummaryTreeModel | ( | ) |
Constructs a new SummaryTreeModel
.
void tit.summary.io.SummaryTreeModel.notifyListeners | ( | Object | parent | ) | [private] |
Notify the listeners.
parent | The parent node from where the tree has been changed. |
void tit.summary.io.SummaryTreeModel.notifyListeners | ( | ) | [private] |
Notify the listeners.
void tit.summary.io.SummaryTreeModel.addTreeModelListener | ( | TreeModelListener | listener | ) |
Adds a listener for the TreeModelEvent posted after the tree changes.
listener | The listener to add. |
void tit.summary.io.SummaryTreeModel.removeTreeModelListener | ( | TreeModelListener | listener | ) |
Removes a listener previously added with addTreeModelListener.
listener |
Object tit.summary.io.SummaryTreeModel.getChild | ( | Object | parent, | |
int | index | |||
) |
Returns the child of parent at index index in the parent's child array.
parent | A node in the tree, obtained from this data source. | |
index | The child's index. |
parent
at index index
. int tit.summary.io.SummaryTreeModel.getChildCount | ( | Object | parent | ) |
Returns the number of children of parent.
parent | A node in the tree, obtained from this data source. |
int tit.summary.io.SummaryTreeModel.getIndexOfChild | ( | Object | parent, | |
Object | child | |||
) |
Returns the index of child in parent.
parent | A node in the tree, obtained from this data source. | |
child | The node we are interested in. |
Object tit.summary.io.SummaryTreeModel.getRoot | ( | ) |
Returns the root of the tree.
boolean tit.summary.io.SummaryTreeModel.isLeaf | ( | Object | node | ) |
Returns true if node is a leaf.
node | A node in the tree, obtained from this data source. |
true
if node is a leaf. void tit.summary.io.SummaryTreeModel.valueForPathChanged | ( | TreePath | path, | |
Object | value | |||
) |
Messaged when the user has altered the value for the item identified by path to value.
path | Path to the node that the user has altered. | |
value | The new value from the TreeCellEditor. |
void tit.summary.io.SummaryTreeModel.addSummaries | ( | String | name, | |
CompleteSummary[] | summaries | |||
) |
Adds a list of summaries to this SummaryTreeModel
.
name | The name of the summaries. | |
summaries | The summaries to add. |
void tit.summary.io.SummaryTreeModel.addSummaries | ( | String | name, | |
SummaryReader | summaries | |||
) |
Adds a list of summaries to this SummaryTreeModel
.
name | The name of the summaries. | |
summaries | The summaries to add. |
void tit.summary.io.SummaryTreeModel.removeNode | ( | Object | node | ) |
Removes a node.
node | The node to remove. |
List<CompleteSummary> tit.summary.io.SummaryTreeModel.getAllSummaries | ( | ) |
Returns all the summaries in this tree.
The summaries held by this tree.
EventListenerList tit.summary.io.SummaryTreeModel.listeners [private] |
This TreeModel
's listeners.