|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
gui.prio.DollarWindow.RequirementTableModel
DefaultTableModel used for checking the input into the cells. Makes
sure that only valid characters are entered and that the $100 limit
is not exceeded.
If incorrect values are entered en error message is displayed.
Field Summary |
Fields inherited from class javax.swing.table.DefaultTableModel |
columnIdentifiers, dataVector |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
DollarWindow.RequirementTableModel(java.lang.Object[][] data,
java.lang.Object[] columnNames)
|
Method Summary | |
private boolean |
allowInsert(int value,
int row)
Check if it is allowed to set the value in the specified row of the $ column, according to the ordinal scale given by the PlanningGame. |
boolean |
isCellEditable(int row,
int column)
|
void |
setValueAt(java.lang.Object value,
int row,
int col)
Set the value in the specified cell. |
Methods inherited from class javax.swing.table.DefaultTableModel |
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DollarWindow.RequirementTableModel(java.lang.Object[][] data, java.lang.Object[] columnNames)
Method Detail |
public boolean isCellEditable(int row, int column)
public void setValueAt(java.lang.Object value, int row, int col)
value
- the value to setrow
- the row of the cell to set the value incol
- the column of the cell to set the value inprivate boolean allowInsert(int value, int row)
value
- the value to checkrow
- the specified row
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |