|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uic.widgets.TwoColorCellRenderer
Implementation of a table cell renderer that has different colors for the odd and even table rows
Field Summary | |
protected TableCellRenderer |
baseRenderer
|
Constructor Summary | |
TwoColorCellRenderer()
|
|
TwoColorCellRenderer(TableCellRenderer baseRender)
Constructor needed to wrap the standard table cell renderer |
Method Summary | |
Component |
getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
Returns the visible component |
boolean |
isPaintFocus()
Should focus rectangle be painted? |
void |
setEvenRowColor(Color bg2)
Sets the color for the even row (rowcount starts at 0) Because of a bug in jdk1.3 Color.white cannot be used as a row color when a different odd color is used |
void |
setOddRowColor(Color bg)
Sets the color for the odd row (rowcount starts at 0) Because of a bug in jdk1.3 Color.white cannot be used as a row color when a different even color is used |
void |
setPaintFocus(boolean paintFocus)
Should focus rectangle be painted? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected TableCellRenderer baseRenderer
Constructor Detail |
public TwoColorCellRenderer()
public TwoColorCellRenderer(TableCellRenderer baseRender)
Method Detail |
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
getTableCellRendererComponent
in interface TableCellRenderer
public void setOddRowColor(Color bg)
public void setEvenRowColor(Color bg2)
public void setPaintFocus(boolean paintFocus)
paintFocus
- true if focus rectangle should be paintedpublic boolean isPaintFocus()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |