SPT Core API

com.sptci.echo.table
Class BoldRowRenderer

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

public class BoldRowRenderer
extends DefaultTableCellRenderer

A cell renderer that can be used to display a specified row using bold font. Note that this renderer does not manage the row numbers, hence re-ordering the rows in a table will result in the wrong rows being rendered in bold.

© Copyright 2009 Sans Pareil Technologies, Inc.

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

Constructor Summary
BoldRowRenderer(Collection<Integer> rows)
          Create a new instance using the specified set of rows.
BoldRowRenderer(int row)
          Create a new instance that will display the specified row using bold font.
 
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

BoldRowRenderer

public BoldRowRenderer(Collection<Integer> rows)
Create a new instance using the specified set of rows.

Parameters:
rows - The set of rows to display in bold.

BoldRowRenderer

public BoldRowRenderer(int row)
Create a new instance that will display the specified row using bold font.

Parameters:
row - The row index.
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