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
 Color getForeground(Component renderedComponent, Object modelObject)
          Returns the foreground color used in the representation of the object
 String getValue(Component renderedComponent, Object modelObject)
          Returns the textual representation of the given tree object
 boolean isBold(Component renderedComponent, Object modelObject)
          Indicates whether the given tree object is painted in bold
 

Method Detail

getValue

public String getValue(Component renderedComponent,
                       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

public boolean isBold(Component renderedComponent,
                      Object modelObject)
Indicates whether the given tree object is painted in bold


getForeground

public Color getForeground(Component renderedComponent,
                           Object modelObject)
Returns the foreground color used in the representation of the object



Copyright © 2004-2007 Design-up. All Rights Reserved.