|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.uispec4j.DefaultTreeCellValueConverter
public class DefaultTreeCellValueConverter
Default implementation for the TreeCellValueConverter interface. This converter returns the text displayed by JLabel components only - it will throw an exception if another renderer component is not used.
| Constructor Summary | |
|---|---|
DefaultTreeCellValueConverter()
|
|
| Method Summary | |
|---|---|
java.awt.Color |
getForeground(java.awt.Component renderedComponent,
java.lang.Object modelObject)
Returns the foreground color used in the representation of the object |
protected javax.swing.JLabel |
getLabel(java.awt.Component renderedComponent)
|
java.lang.String |
getValue(java.awt.Component renderedComponent,
java.lang.Object modelObject)
Returns the textual representation of the given tree object |
boolean |
isBold(java.awt.Component renderedComponent,
java.lang.Object modelObject)
Indicates whether the given tree object is painted in bold |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTreeCellValueConverter()
| Method Detail |
|---|
public java.lang.String getValue(java.awt.Component renderedComponent,
java.lang.Object modelObject)
TreeCellValueConverter
getValue in interface TreeCellValueConverterrenderedComponent - the Component returned by the JTree's renderermodelObject - the Object returned by the JTree's internal model
public boolean isBold(java.awt.Component renderedComponent,
java.lang.Object modelObject)
TreeCellValueConverter
isBold in interface TreeCellValueConverter
public java.awt.Color getForeground(java.awt.Component renderedComponent,
java.lang.Object modelObject)
TreeCellValueConverter
getForeground in interface TreeCellValueConverterprotected javax.swing.JLabel getLabel(java.awt.Component renderedComponent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||