net.sf.doolin.gui.field.table.style
Class FixedColorTableStyle

java.lang.Object
  extended by net.sf.doolin.gui.field.table.style.FixedColorTableStyle
All Implemented Interfaces:
TableStyle

public class FixedColorTableStyle
extends Object
implements TableStyle

Style that applies a fixed color to the rows.

Author:
Damien Coraboeuf

Constructor Summary
FixedColorTableStyle()
           
 
Method Summary
 Color getColor()
          Gets the even row color.
 Style getStyle(Object item, JTable table, int row, int column)
          Gets the style to apply on the table.
 void setColor(Color evenRowColor)
          Sets the even row color.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedColorTableStyle

public FixedColorTableStyle()
Method Detail

getStyle

public Style getStyle(Object item,
                      JTable table,
                      int row,
                      int column)
Gets the style to apply on the table.

Specified by:
getStyle in interface TableStyle
Parameters:
item - Item associated to the row
table - Table
row - Row index
column - Column index
Returns:
Style to apply

getColor

public Color getColor()
Gets the even row color.

Returns:
the even row color

setColor

public void setColor(Color evenRowColor)
Sets the even row color.

Parameters:
evenRowColor - the new even row color


Copyright © 2011. All Rights Reserved.