|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jguiraffe.gui.platform.swing.builder.components.table.SwingTableCellRenderer
class SwingTableCellRenderer
A specialized renderer implementation that is used for table columns that define their own custom renderer component.
This class is the counterpart of
for custom renderers. Its task is to extract the renderer component of a
column from the table definition and to initialize it.
SwingTableCellEditor
| Constructor Summary | |
|---|---|
SwingTableCellRenderer(SwingTableModel tabModel)
Creates a new instance of SwingTableCellRenderer. |
|
| Method Summary | |
|---|---|
SwingTableModel |
getModel()
Returns a reference to the associated table model. |
java.awt.Component |
getTableCellRendererComponent(javax.swing.JTable table,
java.lang.Object value,
boolean selected,
boolean focused,
int row,
int col)
Returns the renderer component for the specified cell. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SwingTableCellRenderer(SwingTableModel tabModel)
SwingTableCellRenderer.
tabModel - the associated table model| Method Detail |
|---|
public SwingTableModel getModel()
public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table,
java.lang.Object value,
boolean selected,
boolean focused,
int row,
int col)
TableColumn tag from the
associated table model and obtains the renderer component from it. The
TableSelectionHandler for renderers will be
invoked to initialize the component. Note that there is no need to
explicitely set the value because this was already done through the
renderer Form of the table component.
getTableCellRendererComponent in interface javax.swing.table.TableCellRenderertable - the table objectvalue - the current valueselected - a flag whether the cell is selectedfocused - a flag whether the cell has the focusrow - the current rowcol - the current column
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||