com.infoengine.modeler.UI
Class DOMTreeModel
java.lang.Object
com.infoengine.modeler.UI.DOMTreeModel
- All Implemented Interfaces:
- EventListener, TreeModel, TreeWillExpandListener
- public class DOMTreeModel
- extends Object
- implements TreeModel, TreeWillExpandListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
expandedIcon
public static ImageIcon expandedIcon
collapsedIcon
public static ImageIcon collapsedIcon
HTML_START
private static String HTML_START
HTML_END
private static String HTML_END
tree
private JTree tree
doc
private Document doc
docRoot
private Element docRoot
listeners
private ArrayList listeners
builder
private static DocumentBuilder builder
DOMTreeModel
private DOMTreeModel(JTree tree)
DOMTreeModel
public DOMTreeModel(JTree tree,
Document d)
DOMTreeModel
public DOMTreeModel(JTree tree,
InputStream is)
throws IOException,
SAXException
setDocument
private void setDocument(Document d)
addTreeModelListener
public void addTreeModelListener(TreeModelListener l)
- Specified by:
addTreeModelListener
in interface TreeModel
getChild
public Object getChild(Object parent,
int index)
- Specified by:
getChild
in interface TreeModel
getChildCount
public int getChildCount(Object parent)
- Specified by:
getChildCount
in interface TreeModel
getIndexOfChild
public int getIndexOfChild(Object parent,
Object child)
- Specified by:
getIndexOfChild
in interface TreeModel
getRoot
public Object getRoot()
- Specified by:
getRoot
in interface TreeModel
isLeaf
public boolean isLeaf(Object node)
- Specified by:
isLeaf
in interface TreeModel
removeTreeModelListener
public void removeTreeModelListener(TreeModelListener l)
- Specified by:
removeTreeModelListener
in interface TreeModel
valueForPathChanged
public void valueForPathChanged(TreePath path,
Object newValue)
- Specified by:
valueForPathChanged
in interface TreeModel
treeWillCollapse
public void treeWillCollapse(TreeExpansionEvent event)
throws ExpandVetoException
- Specified by:
treeWillCollapse
in interface TreeWillExpandListener
- Throws:
ExpandVetoException
treeWillExpand
public void treeWillExpand(TreeExpansionEvent event)
throws ExpandVetoException
- Specified by:
treeWillExpand
in interface TreeWillExpandListener
- Throws:
ExpandVetoException
expandAll
public static void expandAll(JTree tree)
_expandAll
private static void _expandAll(JTree tree,
Object root,
Object node,
ArrayList path)