|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
org.purl.sword.client.PropertiesDialog.PropertiesModel
public class PropertiesDialog.PropertiesModel
A table model that is used to show the properties. The model links directly to the underlying properties object. As changes are made in the table, the corresponding changes are made in the properties object. The user can only edit the value column in the table.
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
PropertiesDialog.PropertiesModel()
Create a new instance of the model. |
|
| Method Summary | |
|---|---|
Class |
getColumnClass(int col)
Retrieve the column class. |
int |
getColumnCount()
Get the number of columns. |
String |
getColumnName(int col)
Retrieve the column name for the specified column. |
String |
getKeyValue(int row)
Get the Key value for the specified row. |
int |
getRowCount()
Get the number of rows. |
Object |
getValueAt(int row,
int col)
Get the value that is at the specified cell. |
boolean |
isCellEditable(int row,
int col)
Determine if the cell can be edited. |
void |
setValueAt(Object value,
int row,
int col)
Set the value for the specified cell. |
| 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 |
| Constructor Detail |
|---|
public PropertiesDialog.PropertiesModel()
| Method Detail |
|---|
public int getColumnCount()
public int getRowCount()
public Object getValueAt(int row,
int col)
row - The row for the cell.col - The column for the cell.
public String getColumnName(int col)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelcol - The column number.
public Class getColumnClass(int col)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelcol - The column number.
public boolean isCellEditable(int row,
int col)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelrow - The cell row.col - The cell column.True - if the cell can be edited. Otherwise, false.
public void setValueAt(Object value,
int row,
int col)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelvalue - The value to set.row - The row for the cell.col - The column.public String getKeyValue(int row)
row - The row.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||