jsystem.treeui.publisher
Class PublisherTreeModel

java.lang.Object
  extended byjsystem.treeui.publisher.PublisherTreeModel
All Implemented Interfaces:
TreeModel

public class PublisherTreeModel
extends Object
implements TreeModel


Field Summary
static int VIEW_ALL
           
static int VIEW_FAIL_ONLY
           
static int VIEW_NOT_SUCCESS
           
static String[] VIEW_TYPES
           
 
Constructor Summary
PublisherTreeModel(File xmlFile)
           
 
Method Summary
 void addTreeModelListener(TreeModelListener l)
           
 boolean equals(Object o)
           
 ElementNode findNode(Element element)
           
 Object getChild(Object parent, int index)
           
 int getChildCount(Object parent)
           
 int getIndexOfChild(Object parent, Object child)
           
 Object getRoot()
           
 int getViewType()
           
static int getViewType(String selectType)
           
 boolean isLeaf(Object node)
           
 void modelChanged()
           
 void printModel(ElementNode node)
           
 void refresh(boolean fromOriginal)
           
 void removeTreeModelListener(TreeModelListener l)
           
 void setViewType(int viewType)
           
 void valueForPathChanged(TreePath path, Object newValue)
           
 void writeToXmlFile()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VIEW_ALL

public static final int VIEW_ALL
See Also:
Constant Field Values

VIEW_FAIL_ONLY

public static final int VIEW_FAIL_ONLY
See Also:
Constant Field Values

VIEW_NOT_SUCCESS

public static final int VIEW_NOT_SUCCESS
See Also:
Constant Field Values

VIEW_TYPES

public static final String[] VIEW_TYPES
Constructor Detail

PublisherTreeModel

public PublisherTreeModel(File xmlFile)
                   throws Exception
Method Detail

getViewType

public static int getViewType(String selectType)

refresh

public void refresh(boolean fromOriginal)
             throws Exception
Throws:
Exception

modelChanged

public void modelChanged()

writeToXmlFile

public void writeToXmlFile()

getRoot

public Object getRoot()
Specified by:
getRoot in interface TreeModel

getChildCount

public int getChildCount(Object parent)
Specified by:
getChildCount in interface TreeModel

isLeaf

public boolean isLeaf(Object node)
Specified by:
isLeaf in interface TreeModel

addTreeModelListener

public void addTreeModelListener(TreeModelListener l)
Specified by:
addTreeModelListener in interface TreeModel

removeTreeModelListener

public void removeTreeModelListener(TreeModelListener l)
Specified by:
removeTreeModelListener in interface TreeModel

getChild

public Object getChild(Object parent,
                       int index)
Specified by:
getChild in interface TreeModel

getIndexOfChild

public int getIndexOfChild(Object parent,
                           Object child)
Specified by:
getIndexOfChild in interface TreeModel

findNode

public ElementNode findNode(Element element)

valueForPathChanged

public void valueForPathChanged(TreePath path,
                                Object newValue)
Specified by:
valueForPathChanged in interface TreeModel

printModel

public void printModel(ElementNode node)

getViewType

public int getViewType()
Returns:
Returns the viewType.

setViewType

public void setViewType(int viewType)
Parameters:
viewType - The viewType to set.

equals

public boolean equals(Object o)