jsystem.treeui.publisher
Class PublisherTreeModel
java.lang.Object
jsystem.treeui.publisher.PublisherTreeModel
- All Implemented Interfaces:
- TreeModel
- public class PublisherTreeModel
- extends Object
- implements TreeModel
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
PublisherTreeModel
public PublisherTreeModel(File xmlFile)
throws Exception
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)