org.uispec4j
Interface TreeCellValueConverter

All Known Implementing Classes:
DefaultTreeCellValueConverter

public interface TreeCellValueConverter

Performs a conversion between internal and tested cell values in a Tree component

See Also:
Tree.setCellValueConverter(org.uispec4j.TreeCellValueConverter)

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
 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
 

Method Detail

getValue

java.lang.String getValue(java.awt.Component renderedComponent,
                          java.lang.Object modelObject)
Returns the textual representation of the given tree object

Parameters:
renderedComponent - the Component returned by the JTree's renderer
modelObject - the Object returned by the JTree's internal model

isBold

boolean isBold(java.awt.Component renderedComponent,
               java.lang.Object modelObject)
Indicates whether the given tree object is painted in bold


getForeground

java.awt.Color getForeground(java.awt.Component renderedComponent,
                             java.lang.Object modelObject)
Returns the foreground color used in the representation of the object



Copyright © 2004-2010. All Rights Reserved.