| javax.swing.table.DefaultTableCellRenderer com.xoetrope.swing.table.XColorTableCellRenderer
XColorTableCellRenderer | public class XColorTableCellRenderer extends DefaultTableCellRenderer (Code) | | A table cell renderer that sets the background color to match a color
value set in a hashtable
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.2 $
|
XColorTableCellRenderer | public XColorTableCellRenderer(Hashtable colors)(Code) | | Creates a new instance of XColorTableCellRenderer
|
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 |
setValue | public void setValue(Object value)(Code) | | Sets the String object for the cell being rendered to
value .
Parameters: value - the string value for this cell; if value isnull it sets the text value to an empty string See Also: JLabel.setText |
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)
|
|
|