public class AWTableCellRenderer
extends java.lang.Object
implements javax.swing.table.TableCellRenderer
AWTableCellRenderer
class provides table cells with alignment function.Constructor and Description |
---|
AWTableCellRenderer(javax.swing.JTable table,
java.util.Hashtable status,
java.lang.String table_name)
The constructor
AWTableCellRenderer creates a new instance(object) of the class. |
AWTableCellRenderer(javax.swing.JTable table,
java.util.Hashtable status,
java.lang.String table_name,
java.awt.Font font,
java.util.Hashtable row_color)
The constructor
AWTableCellRenderer creates a new instance(object) of the class. |
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)
The method
getTableCellRendererComponent getTableCellRendererComponent |
public AWTableCellRenderer(javax.swing.JTable table, java.util.Hashtable status, java.lang.String table_name)
AWTableCellRenderer
creates a new instance(object) of the class.table
- the table.status
- the status of the table cell.table_name
- the name of the current table.public AWTableCellRenderer(javax.swing.JTable table, java.util.Hashtable status, java.lang.String table_name, java.awt.Font font, java.util.Hashtable row_color)
AWTableCellRenderer
creates a new instance(object) of the class.table
- the table.status
- the status of the table cell.table_name
- the name of the current table.font
- fontrow_color
- the row colorspublic java.awt.Component getTableCellRendererComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int row, int column)
getTableCellRendererComponent
getTableCellRendererComponentgetTableCellRendererComponent
in interface javax.swing.table.TableCellRenderer
table
- tablevalue
- valueisSelected
- isSelectedhasFocus
- hasFocusrow
- rowcolumn
- column