public class DbJoinTableModel extends CayenneTableModel
CayenneTableModel.PropertyComparator| Modifier and Type | Field and Description |
|---|---|
protected DbRelationship |
relationship |
protected DbEntity |
source |
protected DbEntity |
target |
eventSource, mediator, objectListlistenerList| Constructor and Description |
|---|
DbJoinTableModel(DbRelationship relationship,
ProjectController mediator,
Object src) |
DbJoinTableModel(DbRelationship relationship,
ProjectController mediator,
Object src,
boolean editable) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Mode new attribute pairs from list to the DbRelationship.
|
int |
getColumnCount() |
String |
getColumnName(int column) |
Class |
getElementsClass()
Returns Java class of the internal list elements.
|
DbJoin |
getJoin(int row) |
String |
getOrderingKey()
Returns null to disable ordering.
|
Object |
getValueAt(int row,
int column) |
boolean |
isCellEditable(int row,
int col) |
boolean |
isColumnSortable(int sortCol) |
void |
setUpdatedValueAt(Object aValue,
int row,
int column)
Sets a new value after it is already checked by the superclass and it is determined
that the value has changed.
|
void |
sortByColumn(int sortCol,
boolean isAscent) |
addRow, getEventSource, getMediator, getObjectList, getRowCount, isValid, moveRowDown, moveRowUp, orderList, removeRow, resetModel, setValueAt, sortByElementProperty, swapRowsaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListenerprotected DbRelationship relationship
protected DbEntity source
protected DbEntity target
public DbJoinTableModel(DbRelationship relationship, ProjectController mediator, Object src)
public DbJoinTableModel(DbRelationship relationship, ProjectController mediator, Object src, boolean editable)
public Class getElementsClass()
CayenneTableModelgetElementsClass in class CayenneTableModelpublic void commit()
public String getOrderingKey()
getOrderingKey in class CayenneTableModelpublic int getColumnCount()
public String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic DbJoin getJoin(int row)
public Object getValueAt(int row, int column)
public void setUpdatedValueAt(Object aValue, int row, int column)
CayenneTableModelsetUpdatedValueAt in class CayenneTableModelpublic boolean isCellEditable(int row,
int col)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic boolean isColumnSortable(int sortCol)
isColumnSortable in class CayenneTableModelpublic void sortByColumn(int sortCol,
boolean isAscent)
sortByColumn in class CayenneTableModelCopyright © 2001–2015 Apache Cayenne. All rights reserved.