|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
org.beanfabrics.swing.table.BnTableModel
public class BnTableModel
The BnTableModel is a TableModel that decorates a IListPM.
To reduce work we decided to extend the AbstractTableModel in order to get the event listener handling. All
other methods are overridden.
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
BnTableModel(org.beanfabrics.model.IListPM aListModel,
java.util.List<BnColumn> colDefs,
boolean editingAllowed)
|
|
| Method Summary | |
|---|---|
void |
dismiss()
Disconnect this object from the underlying IListPM. |
int |
findColumn(java.lang.String columnName)
|
java.util.List<BnColumn> |
getColDefs()
|
java.lang.Class<?> |
getColumnClass(int columnIndex)
|
int |
getColumnCount()
|
java.lang.String |
getColumnName(int column)
|
org.beanfabrics.Path |
getColumnPath(int column)
|
org.beanfabrics.model.IListPM |
getPresentationModel()
Returns the underlying presentation model of this TableModel. |
int |
getRowCount()
|
org.beanfabrics.model.SortKey |
getSortKey(int col)
Returns the SortKey of the specified column or null if that column is not sorted. |
java.util.Collection<org.beanfabrics.model.SortKey> |
getSortKeys()
Returns the SortKeys for this table. |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
|
boolean |
isCellEditingAllowed()
|
void |
setCellEditingAllowed(boolean editingAllowed)
|
void |
setColDefs(java.util.List<BnColumn> colDefs)
|
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
|
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, 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 BnTableModel(org.beanfabrics.model.IListPM aListModel,
java.util.List<BnColumn> colDefs,
boolean editingAllowed)
| Method Detail |
|---|
public void dismiss()
this object from the underlying IListPM.
public void setCellEditingAllowed(boolean editingAllowed)
public boolean isCellEditingAllowed()
public java.util.List<BnColumn> getColDefs()
public void setColDefs(java.util.List<BnColumn> colDefs)
public int getColumnCount()
public int getRowCount()
public void setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModel
public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
public java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelpublic org.beanfabrics.Path getColumnPath(int column)
public int findColumn(java.lang.String columnName)
findColumn in class javax.swing.table.AbstractTableModelpublic java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelpublic org.beanfabrics.model.IListPM getPresentationModel()
TableModel.
public org.beanfabrics.model.SortKey getSortKey(int col)
SortKey of the specified column or null if that column is not sorted.
col -
SortKey of the specified columnpublic java.util.Collection<org.beanfabrics.model.SortKey> getSortKeys()
SortKeys for this table. The order of these keys reflects the order of sorting precedence.
The entry at the top of the collection has the highest precedence when sorting.
SortKeys for this table
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||