SPT Core API

com.sptci.echo.table
Class BoldModelRenderer<D extends Serializable>

java.lang.Object
  extended by nextapp.echo.app.table.DefaultTableCellRenderer
      extended by com.sptci.echo.table.BoldModelRenderer<D>
All Implemented Interfaces:
Serializable, TableCellRenderer

public class BoldModelRenderer<D extends Serializable>
extends DefaultTableCellRenderer

A cell renderer used to render the row corresponding to model objects in bold font. Note that this renderer works only when using instances of Table and not with intances of Table.

© Copyright 2009 Sans Pareil Technologies, Inc.

Version:
$Id: BoldModelRenderer.java 4685 2009-02-23 16:02:35Z rakesh $
Author:
Rakesh Vidyadharan 2009-02-23
See Also:
Serialized Form

Constructor Summary
BoldModelRenderer(Collection<D> collection)
          Create a new renderer that will display the specified collection of model objects in bold.
BoldModelRenderer(D model)
          Create a new renderer that will display the specified model object in bold.
 
Method Summary
 String getBoldStyleName()
          Return the style name to use to render the table cell component in bold.
 Component getTableCellRendererComponent(Table table, Object value, int column, int row)
          
 void setBoldStyleName(String boldStyleName)
          Set the style name to use to render the component used to render the cells in bold.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoldModelRenderer

public BoldModelRenderer(Collection<D> collection)
Create a new renderer that will display the specified collection of model objects in bold.

Parameters:
collection - The collection of model objects.

BoldModelRenderer

public BoldModelRenderer(D model)
Create a new renderer that will display the specified model object in bold.

Parameters:
model - The model object to display in bold.
Method Detail

getTableCellRendererComponent

public Component getTableCellRendererComponent(Table table,
                                               Object value,
                                               int column,
                                               int row)

Specified by:
getTableCellRendererComponent in interface TableCellRenderer
Overrides:
getTableCellRendererComponent in class DefaultTableCellRenderer

getBoldStyleName

public String getBoldStyleName()
Return the style name to use to render the table cell component in bold.

Returns:
The style name used.

setBoldStyleName

public void setBoldStyleName(String boldStyleName)
Set the style name to use to render the component used to render the cells in bold.

Parameters:
boldStyleName - The style name.

SPT Core API