| javax.swing.table.DefaultTableCellRenderer com.xoetrope.swing.table.XAltRowTableCellRenderer
All known Subclasses: com.xoetrope.swing.table.XFormattedTableCellRenderer,
XAltRowTableCellRenderer | public class XAltRowTableCellRenderer extends DefaultTableCellRenderer (Code) | | A cell renderer that color codes alternate rows in the table
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.6 $
|
getTableCellRendererComponent | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)(Code) | | Returns the default table cell renderer.
Parameters: table - the JTable Parameters: value - the value to assign to the cell at[row, column] Parameters: isSelected - true if cell is selected Parameters: hasFocus - true if cell has focus Parameters: row - the row of the cell to render Parameters: column - the column of the cell to render the default table cell renderer |
setAltUnselectedColors | public void setAltUnselectedColors(Color frgd, Color bkgd)(Code) | | Set the colors for alternate ( odd ) row colors
Parameters: frgd - the foreground color Parameters: bkgd - the background color |
setWrapsText | public void setWrapsText(boolean state)(Code) | | Set the wrap text property of this renderer. This property should not be set
to true if the renderer is used for more than one column.
Parameters: state - the wrapping state - true to wrap the text |
Fields inherited from javax.swing.table.DefaultTableCellRenderer | protected static Border noFocusBorder(Code)(Java Doc)
|
Methods inherited from javax.swing.table.DefaultTableCellRenderer | protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)(Code)(Java Doc) public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)(Code)(Java Doc) public void invalidate()(Code)(Java Doc) public boolean isOpaque()(Code)(Java Doc) public void repaint(long tm, int x, int y, int width, int height)(Code)(Java Doc) public void repaint(Rectangle r)(Code)(Java Doc) public void repaint()(Code)(Java Doc) public void revalidate()(Code)(Java Doc) public void setBackground(Color c)(Code)(Java Doc) public void setForeground(Color c)(Code)(Java Doc) protected void setValue(Object value)(Code)(Java Doc) public void updateUI()(Code)(Java Doc) public void validate()(Code)(Java Doc)
|
|
|