Algernon Software

org.algernon.app.j2p
Class FrameTree

java.lang.Object
  extended byorg.algernon.app.j2p.FrameTree

public class FrameTree
extends Object

FrameTree does...


Field Summary
private  Java2Protege f_app
           
private  DefaultTreeModel f_model
           
private  HashMap f_nameTable
           
private  DefaultMutableTreeNode f_root
           
 
Constructor Summary
FrameTree(Java2Protege app, String rootLabel)
           
 
Method Summary
 void add(DefaultMutableTreeNode parent, J2PFrame child)
          Adds the child to the table with the given parent.
 void clear()
          Empties the FrameTree.
 Collection get(String s)
          Returns a Collection of the entries in this table with the given name.
 String getErrorString()
          Returns a string containing any errors found in the frames.
 Iterator getIterator()
          Returns an iterator over the keys in this FrameTree.
 Iterator getKeyIterator()
          Returns an iterator over the keys in this FrameTree.
 TreeModel getModel()
          Returns the model defined by this.
 TreeNode getRoot()
          Note that the root is not a J2PFrame.
 void resetErrors()
          Sets the error flag on all frames to false;
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

f_nameTable

private HashMap f_nameTable

f_app

private Java2Protege f_app

f_root

private DefaultMutableTreeNode f_root

f_model

private DefaultTreeModel f_model
Constructor Detail

FrameTree

public FrameTree(Java2Protege app,
                 String rootLabel)
Method Detail

add

public void add(DefaultMutableTreeNode parent,
                J2PFrame child)
Adds the child to the table with the given parent. If parent is null, the child becomes a child of the root.

Parameters:
parent - the parent of the frame. May be null
child - the child to be added.

getRoot

public TreeNode getRoot()
Note that the root is not a J2PFrame.


get

public Collection get(String s)
Returns a Collection of the entries in this table with the given name. Returns null if none.


resetErrors

public void resetErrors()
Sets the error flag on all frames to false;


getKeyIterator

public Iterator getKeyIterator()
Returns an iterator over the keys in this FrameTree.


getIterator

public Iterator getIterator()
Returns an iterator over the keys in this FrameTree.


getErrorString

public String getErrorString()
Returns a string containing any errors found in the frames.


getModel

public TreeModel getModel()
Returns the model defined by this.


clear

public void clear()
Empties the FrameTree.


Algernon Software