|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
uk.ac.starlink.util.gui.SelectCharactersModel
public class SelectCharactersModel
SelectCharactersModel is an implementation of the TableModel interface for displaying all the characters in a given font.
Field Summary | |
---|---|
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. |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
SelectCharactersModel(Font font)
Create an instance of this class. |
Method Summary | |
---|---|
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. |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Font font
protected int numChars
protected final int numColumns
protected int numRows
Constructor Detail |
---|
public SelectCharactersModel(Font font)
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |