|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.princeton.wordnet.browser.tree.renderers.dom4j.DefaultDecorator edu.princeton.wordnet.browser.tree.renderers.dom4j.ElementDecorator
public class ElementDecorator
Element decorator
Field Summary | |
---|---|
private static javax.swing.ImageIcon |
theElementIcon
Element icon |
private static javax.swing.text.SimpleAttributeSet |
theElementNameStyle
Style for element name |
private static javax.swing.text.SimpleAttributeSet |
theElementValueStyle
Style for element data |
Fields inherited from class edu.princeton.wordnet.browser.tree.renderers.dom4j.DefaultDecorator |
---|
theNode |
Constructor Summary | |
---|---|
ElementDecorator(org.dom4j.Node thisNode)
Constructor |
Method Summary | |
---|---|
protected java.lang.String |
getAttributes()
Get attribute string |
private org.dom4j.Element |
getElement()
Get element |
javax.swing.Icon |
getIcon()
Get icon for node |
java.lang.String |
getName()
Get node name |
javax.swing.text.SimpleAttributeSet |
getNameStyle()
Get name style for node |
protected java.lang.String |
getText()
Get element text |
java.lang.String |
getValue()
Get node data |
javax.swing.text.SimpleAttributeSet |
getValueStyle()
Get value style for node |
Methods inherited from class edu.princeton.wordnet.browser.tree.renderers.dom4j.DefaultDecorator |
---|
childrenToString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static javax.swing.text.SimpleAttributeSet theElementNameStyle
private static javax.swing.text.SimpleAttributeSet theElementValueStyle
private static javax.swing.ImageIcon theElementIcon
Constructor Detail |
---|
public ElementDecorator(org.dom4j.Node thisNode)
thisNode
- DOM nodeMethod Detail |
---|
public java.lang.String getName()
DefaultDecorator
getName
in class DefaultDecorator
public java.lang.String getValue()
DefaultDecorator
getValue
in class DefaultDecorator
public javax.swing.text.SimpleAttributeSet getNameStyle()
getNameStyle
in class DefaultDecorator
public javax.swing.text.SimpleAttributeSet getValueStyle()
getValueStyle
in class DefaultDecorator
public javax.swing.Icon getIcon()
DefaultDecorator
getIcon
in class DefaultDecorator
private org.dom4j.Element getElement()
protected java.lang.String getText()
protected java.lang.String getAttributes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |