|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swingx.renderer.AbstractRenderer
org.jdesktop.swingx.renderer.DefaultTreeRenderer
public class DefaultTreeRenderer
Adapter to glue SwingX renderer support to core api.
| Field Summary |
|---|
| Fields inherited from class org.jdesktop.swingx.renderer.AbstractRenderer |
|---|
componentController |
| Constructor Summary | |
|---|---|
DefaultTreeRenderer()
Instantiates a default tree renderer with the default component provider. |
|
DefaultTreeRenderer(ComponentProvider<?> componentProvider)
Instantiates a default tree renderer with the given component provider. |
|
DefaultTreeRenderer(IconValue iv)
Instantiates a default tree renderer with the default wrapping provider, using the given IconValue for customizing the icons. |
|
DefaultTreeRenderer(IconValue iv,
StringValue sv)
Instantiates a default tree renderer with the default wrapping provider, using the given IconValue for customizing the icons and the given StringValue for node content. |
|
DefaultTreeRenderer(IconValue iv,
StringValue sv,
boolean unwrapUserObject)
Instantiates a default tree renderer with the default wrapping provider, using the given IconValue for customizing the icons and the given StringValue for node content. |
|
DefaultTreeRenderer(StringValue sv)
Instantiates a default tree renderer with a default component provider using the given converter. |
|
| Method Summary | |
|---|---|
protected ComponentProvider<?> |
createDefaultComponentProvider()
The default ComponentProvider to use if no special. |
java.awt.Component |
getTreeCellRendererComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
Returns a configured component, appropriate to render the given tree cell. |
| Methods inherited from class org.jdesktop.swingx.renderer.AbstractRenderer |
|---|
doClick, getComponentProvider, getString, isEnabled, setBackground, setForeground, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTreeRenderer()
public DefaultTreeRenderer(ComponentProvider<?> componentProvider)
WrappingProvider.
componentProvider - the provider of the configured component to
use for cell renderingpublic DefaultTreeRenderer(IconValue iv)
iv - the IconValue to use for mapping a custom icon
for a given valuepublic DefaultTreeRenderer(StringValue sv)
sv - the converter to use for mapping the
content value to a String representation.
public DefaultTreeRenderer(IconValue iv,
StringValue sv)
iv - the IconValue to use for mapping a custom icon
for a given valuesv - the converter to use for mapping the
content value to a String representation.
public DefaultTreeRenderer(IconValue iv,
StringValue sv,
boolean unwrapUserObject)
iv - the IconValue to use for mapping a custom icon
for a given valuesv - the converter to use for mapping the
content value to a String representation.unwrapUserObject - a flag indicating whether this provider
should auto-unwrap the userObject from the context value.| Method Detail |
|---|
public java.awt.Component getTreeCellRendererComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
getTreeCellRendererComponent in interface javax.swing.tree.TreeCellRenderertree - the JTreevalue - the value to assign to the cellselected - true if cell is selectedexpanded - true if the cell is expandedleaf - true if the cell is a leafhasFocus - true if cell has focusrow - the row of the cell to render
protected ComponentProvider<?> createDefaultComponentProvider()
createDefaultComponentProvider in class AbstractRendererComponentProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||