javax.swing.table
public class DefaultTableCellRenderer extends JLabel implements TableCellRenderer, Serializable
Nested Class Summary | |
---|---|
static class | DefaultTableCellRenderer.UIResource |
Field Summary | |
---|---|
protected static Border | noFocusBorder |
Constructor Summary | |
---|---|
DefaultTableCellRenderer()
Creates a default table cell renderer with an empty border. |
Method Summary | |
---|---|
protected void | firePropertyChange(String propertyName, Object oldValue, Object newValue)
Overriden for performance.
|
void | firePropertyChange(String propertyName, boolean oldValue, boolean newValue)
Overriden for performance.
|
Component | getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
Get the string value of the object and pass it to setText().
|
boolean | isOpaque()
Overriden for performance.
|
void | repaint(long tm, int x, int y, int width, int height)
Overriden for performance.
|
void | repaint(Rectangle r)
Overriden for performance.
|
void | revalidate() |
void | setBackground(Color c)
Assign the unselected-background.
|
void | setForeground(Color c)
Assign the unselected-foreground.
|
protected void | setValue(Object value)
Sets the String for this cell.
|
void | updateUI()
Look and feel has changed.
|
void | validate()
Overriden for performance.
|
This method needs to be overridden in a subclass to actually do something.
This method needs to be overridden in a subclass to actually do something.
Parameters: table the JTable value the value of the object. For the text content, null is rendered as an empty cell. isSelected is the cell selected? hasFocus has the cell the focus? row the row to render column the cell to render
Returns: this component (the default table cell renderer)
This method needs to be overridden in a subclass to actually do something.
Returns: always true
This method needs to be overridden in a subclass to actually do something.
This method needs to be overridden in a subclass to actually do something.
Parameters: c the color to assign
Parameters: c the color to assign
Parameters: value the string value for this cell; if value is null it sets the text value to an empty string
Replaces the current UI object with the latest version from the UIManager.
This method needs to be overridden in a subclass to actually do something.