|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel com.taursys.swing.MTableModel
MTableModel is a table model for use with the MTable. It provides binding to data in a ListValueHolder. You must set the listValueHolder and columnNames properties to use this model.
Field Summary |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
MTableModel()
Constructs a new MTableModel |
Method Summary | |
void |
addColumn(java.lang.String columnName)
|
protected ListValueHolder |
createDefaultListValueHolder()
|
int |
findColumn(java.lang.String columnName)
|
java.lang.Class |
getColumnClass(int col)
|
int |
getColumnCount()
|
int |
getColumnIndex(java.lang.String columnName)
|
java.lang.String |
getColumnName(int col)
|
java.lang.String[] |
getColumnNames()
|
java.util.List |
getList()
Gets the List that the internal ListValueHolder will use. |
javax.swing.ListSelectionModel |
getListSelectionModel()
|
ListValueHolder |
getListValueHolder()
|
int |
getRowCount()
|
java.lang.Object |
getValueAt(int row,
int col)
|
java.lang.Class |
getValueObjectClass()
Returns the class of the value object. |
boolean |
isCellEditable(int parm1,
int parm2)
|
void |
removeColumn(java.lang.String columnName)
|
void |
setColumnNames(java.lang.String[] newColumnNames)
|
void |
setList(java.util.List newList)
Sets the List that the internal ListValueHolder will use. |
void |
setListSelectionModel(javax.swing.ListSelectionModel newListSelectionModel)
|
void |
setListValueHolder(ListValueHolder newListValueHolder)
|
void |
setValueObjectClass(java.lang.Class newValueObjectClass)
Sets the class of the value object. |
void |
stateChanged(javax.swing.event.ChangeEvent e)
|
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MTableModel()
Method Detail |
protected ListValueHolder createDefaultListValueHolder()
public void setValueObjectClass(java.lang.Class newValueObjectClass)
public java.lang.Class getValueObjectClass()
public void setList(java.util.List newList)
public java.util.List getList()
public boolean isCellEditable(int parm1, int parm2)
isCellEditable
in interface javax.swing.table.TableModel
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
public java.lang.String getColumnName(int col)
getColumnName
in interface javax.swing.table.TableModel
public int findColumn(java.lang.String columnName)
public java.lang.Object getValueAt(int row, int col)
getValueAt
in interface javax.swing.table.TableModel
public int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
public java.lang.Class getColumnClass(int col)
getColumnClass
in interface javax.swing.table.TableModel
public void setListValueHolder(ListValueHolder newListValueHolder)
public ListValueHolder getListValueHolder()
public void setListSelectionModel(javax.swing.ListSelectionModel newListSelectionModel)
public javax.swing.ListSelectionModel getListSelectionModel()
public void setColumnNames(java.lang.String[] newColumnNames)
public java.lang.String[] getColumnNames()
public int getColumnIndex(java.lang.String columnName)
public void addColumn(java.lang.String columnName)
public void removeColumn(java.lang.String columnName)
public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |