|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel net.sf.magicproject.ui.MCardTableModel
public class MCardTableModel
Constructor Summary | |
---|---|
MCardTableModel(MListModel<MCardCompare> mCardList)
Create a new TableModel with an MCardCompare list as source for cells. |
Method Summary | |
---|---|
MListModel<MCardCompare> |
getCards()
|
int |
getColumnCount()
number of columns of the table |
int |
getRowCount()
number of rowns of the table |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
get the value in cell [rowIndex; columnIndex] |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
only the quantities column may be edited |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
set value at cell [rowIndex; columnIndex] |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MCardTableModel(MListModel<MCardCompare> mCardList)
mCardList
- Method Detail |
---|
public int getColumnCount()
public int getRowCount()
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
rowIndex
- columnIndex
-
public void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
public MListModel<MCardCompare> getCards()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |