edu.princeton.wordnet.browser.tree.renderers.dom4j
Class DefaultDecorator

java.lang.Object
  extended by edu.princeton.wordnet.browser.tree.renderers.dom4j.DefaultDecorator
Direct Known Subclasses:
DocumentDecorator, ElementDecorator, TextDecorator

public class DefaultDecorator
extends java.lang.Object

Node decorator

Author:
Bernard Bou

Field Summary
private static javax.swing.ImageIcon theDefaultIcon
          Default icon
private static javax.swing.text.SimpleAttributeSet theDefaultNameStyle
          Default name style
private static javax.swing.text.SimpleAttributeSet theDefaultValueStyle
          Default value style
protected  org.dom4j.Node theNode
          DOM node
 
Constructor Summary
DefaultDecorator(org.dom4j.Node thisNode)
          Constructor
 
Method Summary
protected  java.lang.String childrenToString()
          Convert children's value to string
 javax.swing.Icon getIcon()
          Get icon for node
 java.lang.String getName()
          Get node name
 javax.swing.text.SimpleAttributeSet getNameStyle()
          Get name style
 java.lang.String getValue()
          Get node data
 javax.swing.text.SimpleAttributeSet getValueStyle()
          Get value style
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theDefaultNameStyle

private static javax.swing.text.SimpleAttributeSet theDefaultNameStyle
Default name style


theDefaultValueStyle

private static javax.swing.text.SimpleAttributeSet theDefaultValueStyle
Default value style


theDefaultIcon

private static javax.swing.ImageIcon theDefaultIcon
Default icon


theNode

protected org.dom4j.Node theNode
DOM node

Constructor Detail

DefaultDecorator

public DefaultDecorator(org.dom4j.Node thisNode)
Constructor

Parameters:
thisNode - DOM node to decorate
Method Detail

getName

public java.lang.String getName()
Get node name

Returns:
node name

getValue

public java.lang.String getValue()
Get node data

Returns:
node data

getNameStyle

public javax.swing.text.SimpleAttributeSet getNameStyle()
Get name style

Returns:
value style

getValueStyle

public javax.swing.text.SimpleAttributeSet getValueStyle()
Get value style

Returns:
value style

getIcon

public javax.swing.Icon getIcon()
Get icon for node

Returns:
icon

childrenToString

protected java.lang.String childrenToString()
Convert children's value to string

Returns:
string