public final class AdvantageCellRenderer
extends java.lang.Object
implements javax.swing.table.TableCellRenderer
| Modifier and Type | Field and Description |
|---|---|
private NationOptions.Advantages |
advantages
The national advantages type.
|
| Constructor and Description |
|---|
AdvantageCellRenderer(NationOptions.Advantages advantages)
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Component |
getTableCellRendererComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
Gets the component used to render the cell's value.
|
private NationOptions.Advantages advantages
public AdvantageCellRenderer(NationOptions.Advantages advantages)
advantages - The type of national Advantages.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.TableCellRenderertable - The table whose cell needs to be rendered.value - The value of the cell being rendered.hasFocus - Indicates whether or not the cell in question has focus.row - The row index of the cell that is being rendered.column - The column index of the cell that is being rendered.