|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--Ulm.XML.GUI.XML_view
XML view component bean, the central class of this project. This component is able to display the given XML document, specified as a Reader, InputStream, Node or clipboard content. The component also contains two additional panels, one for displaying the current path and the other for setting a filter. Filter, if set, makes only the document fragments, starting with the node with the given name, visible. These two additional panels can also be hidden if not required.
Constructor Summary |
XML_view() |
Method Summary | |
void |
Expand(javax.swing.tree.DefaultMutableTreeNode n)
Expand this node and all its children. |
java.lang.String |
getFilter() If set, the set of document fragments, starting from the node with the given name is displayed. |
org.w3c.dom.Node |
getTree() Get the XML currently being displayed |
boolean |
isAutoExpand() If set, the branch is expanded by clicking on its text. |
boolean |
isFilterVisible() If set, the filter panel is visible. |
boolean |
isStructureVisible() Checks if the structure tab is visible. |
boolean |
isPathVisible() If set to true, the path to the node from root is visible above the tree. |
boolean |
isSimplify() If set, the built - in specialised renderers are active. |
void |
setAutoExpand(boolean newAutoExpand)
If set, the branch is expanded by clicking on its text. |
void |
setFilter(java.lang.String newFilter)
If set, the set of document fragments, starting from the node with the given name is displayed. |
void |
setFilterVisible(boolean newFilterVisible)
If set, the filter panel is visible. |
void |
setPathVisible(boolean newPathVisible)
If set to true, the path to the node from root is visible above the tree. |
void |
setSimplify(boolean newSimplify)
If set, the built - in specialised renderers are active. |
void |
setTree(org.w3c.dom.Node newTree)
Set the XML document to display |
void |
setStructureVisible(boolean show)
Shows/hides the document structure tab. |
void |
showStream(java.io.InputStream input)
Reads and shows the XML document from the stream. |
void |
showStream(java.io.Reader input)
Reads and shows the XML document from the reader. |
void |
paste()
Reads and shows the XML document from the clipboard. |
Constructor Detail |
public XML_view()
Method Detail |
public org.w3c.dom.Node getTree()
public void setTree(org.w3c.dom.Node newTree)
public void showStream(java.io.Reader input)
public void showStream(java.io.InputStream input)
public void setPathVisible(boolean newPathVisible)
public boolean isPathVisible()
public void Expand(javax.swing.tree.DefaultMutableTreeNode n)
public void setAutoExpand(boolean newAutoExpand)
public boolean isAutoExpand()
public void setFilter(java.lang.String newFilter)
public java.lang.String getFilter()
public void setSimplify(boolean newSimplify)
public boolean isSimplify()
public void setFilterVisible(boolean newFilterVisible)
public boolean isFilterVisible()
public boolean paste()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |