public class SelectCharactersModel extends AbstractTableModel
| Modifier and Type | Field and Description |
|---|---|
protected Font |
font
The font that we're displaying.
|
protected int |
numChars
The number of characters in the font.
|
protected int |
numColumns
The number of characters displayed in a row.
|
protected int |
numRows
Number of rows needed to display the whole font.
|
listenerList| Constructor and Description |
|---|
SelectCharactersModel(Font font)
Create an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getColumnClass(int index)
Return the column classes.
|
int |
getColumnCount()
Returns the number of columns.
|
String |
getColumnName(int index)
Return the column names.
|
int |
getRowCount()
Returns the number of records managed by the data source
object.
|
Object |
getValueAt(int row,
int column)
Return the value of a given cell.
|
boolean |
isCellEditable(int row,
int column)
Nothing is editable.
|
void |
setFont(Font font)
Set the displayed font.
|
void |
setValueAt(Object value,
int row,
int column)
Since nothing can be changed.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerprotected Font font
protected int numChars
protected final int numColumns
protected int numRows
public SelectCharactersModel(Font font)
public void setFont(Font font)
public int getRowCount()
public int getColumnCount()
public Object getValueAt(int row, int column)
public String getColumnName(int index)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic Class<?> getColumnClass(int index)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic boolean isCellEditable(int row,
int column)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic void setValueAt(Object value, int row, int column)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.