|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swing.control.attributetable.AttributeTableCellRenderer
This class provides the table cell rendering capabilites for the attributetable. It uses a fallback to the standard renderer for plain text fields.
| Constructor Summary | |
AttributeTableCellRenderer(SwingAttributeTable attributetable)
Constructs the cellrenderer |
|
| Method Summary | |
protected Attribute |
getAttribute(int row)
Returns the Attribute at the given row index. |
java.awt.Component |
getTableCellRendererComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
|
java.awt.Component |
getTableCellRendererComponentEx(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
This method is overriden from the interface and returns the appropriate renderer for the given cell. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AttributeTableCellRenderer(SwingAttributeTable attributetable)
attributetable - the attributetable this instance is associated with.| Method Detail |
public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
getTableCellRendererComponent in interface javax.swing.table.TableCellRenderer
public java.awt.Component getTableCellRendererComponentEx(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
table - the parent table.value - value displayed in the cellisSelected - whether cell is selected.hasFocus - whether cell has focusrow - row of the cellcolumn - column of the cell
protected Attribute getAttribute(int row)
Attribute at the given row index.
row - row index.
Attribute at the given row index.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||