tit.summary.io.SummaryTreeModel Class Reference

List of all members.

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< CompleteSummarygetAllSummaries ()

Private Member Functions

void notifyListeners (Object parent)
void notifyListeners ()

Private Attributes

SummariesSet root
EventListenerList listeners

Classes

class  SummariesSet
class  SummarySet

Detailed Description

A TreeModel which displays a number of summaries.
Author:
Bart Sas


Constructor & Destructor Documentation

tit.summary.io.SummaryTreeModel.SummaryTreeModel (  ) 

Constructs a new SummaryTreeModel.


Member Function Documentation

void tit.summary.io.SummaryTreeModel.notifyListeners ( Object  parent  )  [private]

Notify the listeners.

Parameters:
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.

Parameters:
listener The listener to add.

void tit.summary.io.SummaryTreeModel.removeTreeModelListener ( TreeModelListener  listener  ) 

Removes a listener previously added with addTreeModelListener.

Parameters:
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.

Parameters:
parent A node in the tree, obtained from this data source.
index The child's index.
Returns:
The child of parent at index index.

int tit.summary.io.SummaryTreeModel.getChildCount ( Object  parent  ) 

Returns the number of children of parent.

Parameters:
parent A node in the tree, obtained from this data source.
Returns:
The number of children of parent.

int tit.summary.io.SummaryTreeModel.getIndexOfChild ( Object  parent,
Object  child 
)

Returns the index of child in parent.

Parameters:
parent A node in the tree, obtained from this data source.
child The node we are interested in.
Returns:
The index of the child in the parent, or -1 if either child or parent are null or don't belong to this tree model.

Object tit.summary.io.SummaryTreeModel.getRoot (  ) 

Returns the root of the tree.

Returns:
The root of the tree.

boolean tit.summary.io.SummaryTreeModel.isLeaf ( Object  node  ) 

Returns true if node is a leaf.

Parameters:
node A node in the tree, obtained from this data source.
Returns:
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.

Parameters:
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.

Parameters:
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.

Parameters:
name The name of the summaries.
summaries The summaries to add.

void tit.summary.io.SummaryTreeModel.removeNode ( Object  node  ) 

Removes a node.

Parameters:
node The node to remove.

List<CompleteSummary> tit.summary.io.SummaryTreeModel.getAllSummaries (  ) 

Returns all the summaries in this tree.

Returns:
All the summaries in this tree.


Member Data Documentation

SummariesSet tit.summary.io.SummaryTreeModel.root [private]

The summaries held by this tree.

EventListenerList tit.summary.io.SummaryTreeModel.listeners [private]

This TreeModel's listeners.


The documentation for this class was generated from the following file:
Generated on Sun Jun 3 16:44:01 2007 by  doxygen 1.5.1