public class DbRelationshipTableModel extends CayenneTableModel
CayenneTableModel.PropertyComparator| Modifier and Type | Field and Description |
|---|---|
protected DbEntity |
entity |
eventSource, mediator, objectListlistenerList| Constructor and Description |
|---|
DbRelationshipTableModel(DbEntity entity,
ProjectController mediator,
Object eventSource) |
| Modifier and Type | Method and Description |
|---|---|
Class |
getColumnClass(int col) |
int |
getColumnCount() |
String |
getColumnName(int col) |
Class |
getElementsClass()
Returns DbRelationship class.
|
DbRelationship |
getRelationship(int row) |
Object |
getValueAt(int row,
int col) |
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, getOrderingKey, getRowCount, isValid, moveRowDown, moveRowUp, orderList, removeRow, resetModel, setValueAt, sortByElementProperty, swapRowsaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerprotected DbEntity entity
public DbRelationshipTableModel(DbEntity entity, ProjectController mediator, Object eventSource)
public Class getElementsClass()
getElementsClass in class CayenneTableModelpublic int getColumnCount()
public String getColumnName(int col)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic Class getColumnClass(int col)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic DbRelationship getRelationship(int row)
public Object getValueAt(int row, int col)
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.