|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.renderer.DefaultTableRenderer
public class DefaultTableRenderer
Adapter to glue SwingX renderer support to core api.
ComponentProvider
,
LabelProvider
,
CellContext
,
Serialized FormField Summary | |
---|---|
protected ComponentProvider |
componentController
|
Constructor Summary | |
---|---|
DefaultTableRenderer()
Instantiates a default table renderer with the default component controller. |
|
DefaultTableRenderer(ComponentProvider componentController)
Instantiates a default table renderer with the given componentController. |
|
DefaultTableRenderer(StringValue converter)
Instantiates a default table renderer with a default component controller using the given converter. |
Method Summary | |
---|---|
void |
doClick()
Same as AbstractButton.doClick(). |
Component |
getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
Returns a configured component, appropriate to render the given list cell. |
boolean |
isEnabled()
|
void |
setBackground(Color background)
|
void |
setForeground(Color foreground)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ComponentProvider componentController
Constructor Detail |
---|
public DefaultTableRenderer()
public DefaultTableRenderer(ComponentProvider componentController)
LabelProvider
.
componentController
- the provider of the configured component to
use for cell renderingpublic DefaultTableRenderer(StringValue converter)
converter
- the converter to use for mapping the
content value to a String representation.Method Detail |
---|
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
getTableCellRendererComponent
in interface TableCellRenderer
table
- the JTable
value
- the value to assign to the cell at
[row, column]
isSelected
- true if cell is selectedhasFocus
- true if cell has focusrow
- the row of the cell to rendercolumn
- the column of the cell to render
public void setBackground(Color background)
background
- public void setForeground(Color foreground)
foreground
- public void doClick()
doClick
in interface RolloverRenderer
public boolean isEnabled()
isEnabled
in interface RolloverRenderer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |