org.apache.batik.util.gui

Class DOMViewer.Panel

public class DOMViewer.Panel extends JPanel

The panel that contains the viewer.
Nested Class Summary
protected classDOMViewer.Panel.DOMTreeSelectionListener
To listen to the tree selection.
protected classDOMViewer.Panel.NodeAttributesModel
To display the attributes of a DOM node attributes in a table.
protected classDOMViewer.Panel.NodeCSSValuesModel
To display the CSS properties of a DOM node in a table.
protected classDOMViewer.Panel.NodeRenderer
To render the tree nodes.
Field Summary
protected JTableattributesTable
The attributes table.
protected JTextAreacharacterData
The CharacterData panel text area.
protected JPanelcharacterDataPanel
The CharacterData node panel.
protected Documentdocument
The DOM document.
protected JTextAreadocumentInfo
The documentInfo panel text area.
protected JPaneldocumentInfoPanel
The documentInfo node panel.
protected JPanelelementPanel
The element panel.
protected JTablepropertiesTable
The properties table.
protected JPanelrightPanel
The right panel.
protected JSplitPanesplitPane
The split pane.
protected JTreetree
The tree.
protected ViewCSSviewCSS
The ViewCSS object associated with the document.
Constructor Summary
Panel()
Creates a new Panel object.
Method Summary
protected MutableTreeNodecreateTree(Node node, boolean showWhitespace)
Creates a swing tree from a DOM document.
voidsetDocument(Document doc)
Sets the document to display.
voidsetDocument(Document doc, ViewCSS view)
Sets the document to display and its ViewCSS.

Field Detail

attributesTable

protected JTable attributesTable
The attributes table.

characterData

protected JTextArea characterData
The CharacterData panel text area.

characterDataPanel

protected JPanel characterDataPanel
The CharacterData node panel.

document

protected Document document
The DOM document.

documentInfo

protected JTextArea documentInfo
The documentInfo panel text area.

documentInfoPanel

protected JPanel documentInfoPanel
The documentInfo node panel.

elementPanel

protected JPanel elementPanel
The element panel.

propertiesTable

protected JTable propertiesTable
The properties table.

rightPanel

protected JPanel rightPanel
The right panel.

splitPane

protected JSplitPane splitPane
The split pane.

tree

protected JTree tree
The tree.

viewCSS

protected ViewCSS viewCSS
The ViewCSS object associated with the document.

Constructor Detail

Panel

public Panel()
Creates a new Panel object.

Method Detail

createTree

protected MutableTreeNode createTree(Node node, boolean showWhitespace)
Creates a swing tree from a DOM document.

setDocument

public void setDocument(Document doc)
Sets the document to display.

setDocument

public void setDocument(Document doc, ViewCSS view)
Sets the document to display and its ViewCSS.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.