org.apache.batik.util.gui
public class DOMViewer extends JFrame implements ActionMap
Nested Class Summary | |
---|---|
protected class | DOMViewer.CloseButtonAction
The action associated with the 'Close' button of the viewer panel |
protected static class | DOMViewer.ContentNodeInfo
To store the node information for an xbl:content node's
selected content. |
protected static class | DOMViewer.NodeInfo
To store the nodes informations |
class | DOMViewer.Panel
The panel that contains the viewer. |
protected static class | DOMViewer.ShadowNodeInfo
To store the node information for a shadow tree. |
Field Summary | |
---|---|
protected static ResourceBundle | bundle
The resource bundle |
protected Map | listeners
The map that contains the listeners |
protected DOMViewer.Panel | panel
The panel. |
protected static ResourceManager | resources
The resource manager |
protected static String | RESOURCE
The resource file name |
protected boolean | showWhitespace
Whether to show text nodes that contain only whitespace in the tree. |
Constructor Summary | |
---|---|
DOMViewer()
Creates a new DOMViewer panel. |
Method Summary | |
---|---|
Action | getAction(String key)
Returns the action associated with the given string
or null on error |
void | setDocument(Document doc)
Sets the document to display. |
void | setDocument(Document doc, ViewCSS view)
Sets the document to display and its ViewCSS. |
void | setShowWhitespace(boolean state)
Sets whether to show text nodes that contain only whitespace
in the tree. |
Parameters: key the key mapped with the action to get
Throws: MissingListenerException if the action is not found