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, removeTableModelListener
protected 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 TableModel
getColumnName
in class AbstractTableModel
public Class<?> getColumnClass(int index)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public boolean isCellEditable(int row, int column)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public void setValueAt(Object value, int row, int column)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.