public class ObjRelationshipTableModel extends CayenneTableModel
CayenneTableModel.PropertyComparator| Modifier and Type | Field and Description |
|---|---|
protected ObjEntity |
entity |
eventSource, mediator, objectListlistenerList| Constructor and Description |
|---|
ObjRelationshipTableModel(ObjEntity entity,
ProjectController mediator,
Object eventSource) |
| Modifier and Type | Method and Description |
|---|---|
Class |
getColumnClass(int col) |
int |
getColumnCount() |
String |
getColumnName(int column) |
Class |
getElementsClass()
Returns ObjRelationship class.
|
ObjEntity |
getEntity() |
ObjRelationship |
getRelationship(int row) |
Object |
getValueAt(int row,
int column) |
boolean |
isCellEditable(int row,
int col) |
boolean |
isColumnSortable(int sortCol) |
protected void |
orderList()
Orders internal object list.
|
void |
removeRow(int row) |
void |
setUpdatedValueAt(Object value,
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, removeRow, resetModel, setValueAt, sortByElementProperty, swapRowsaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerprotected ObjEntity entity
public ObjRelationshipTableModel(ObjEntity entity, ProjectController mediator, Object eventSource)
protected void orderList()
CayenneTableModelgetOrderingKey is used
for comparison.orderList in class CayenneTableModelpublic ObjEntity getEntity()
public Class getElementsClass()
getElementsClass in class CayenneTableModelpublic int getColumnCount()
public String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic Class getColumnClass(int col)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic ObjRelationship getRelationship(int row)
public Object getValueAt(int row, int column)
public void setUpdatedValueAt(Object value, int row, int column)
CayenneTableModelsetUpdatedValueAt in class CayenneTableModelpublic void removeRow(int row)
public 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.