P
Pavel
Greetings to all -
I'm working on presenting the JDOM Document object in the swing JTree
component. There is a need to add, remove and modify the elements of
the Document.
I've started by extending the DefaultTreeModel (actually, by
implementing TreeModel first) but then realized that creating jdom
Element wrapper class that extends DefaultMutableTreeNode might be a
better idea because most of the logic connecting TreeNode with Element
will be in one place (subclass of DefaultMutableTreeNode).
I think that similar code already exists or at least the best practice
is established. Any suggestions are greatly appreciated.
Thanks
Pavel
P.S. Maybe JDOMMutableTreeNode class that extends
DefaultMutableTreeNode (or just implements MutableTreeNode) would be a
nice complement to the JDOM package. Or maybe it already exists and I
just overlooked it.
I'm working on presenting the JDOM Document object in the swing JTree
component. There is a need to add, remove and modify the elements of
the Document.
I've started by extending the DefaultTreeModel (actually, by
implementing TreeModel first) but then realized that creating jdom
Element wrapper class that extends DefaultMutableTreeNode might be a
better idea because most of the logic connecting TreeNode with Element
will be in one place (subclass of DefaultMutableTreeNode).
I think that similar code already exists or at least the best practice
is established. Any suggestions are greatly appreciated.
Thanks
Pavel
P.S. Maybe JDOMMutableTreeNode class that extends
DefaultMutableTreeNode (or just implements MutableTreeNode) would be a
nice complement to the JDOM package. Or maybe it already exists and I
just overlooked it.