|
|||||||||
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(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)
|
Path |
getColumnPath(int column)
|
IListPM |
getPresentationModel()
Returns the underlying presentation model of this TableModel . |
int |
getRowCount()
|
SortKey |
getSortKey(int col)
Returns the SortKey of the specified column or null if that column is not sorted. |
java.util.Collection<SortKey> |
getSortKeys()
Returns the SortKey s 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(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.TableModel
setValueAt
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.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public Path getColumnPath(int column)
public int findColumn(java.lang.String columnName)
findColumn
in class javax.swing.table.AbstractTableModel
public java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public IListPM getPresentationModel()
TableModel
.
public 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<SortKey> getSortKeys()
SortKey
s 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.
SortKey
s for this table
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |