public class OverrideEmbeddableAttributeTableModel extends CayenneTableModel
CayenneTableModel.PropertyComparator| Modifier and Type | Field and Description |
|---|---|
protected List<EmbeddableAttribute> |
embeddableList |
eventSource, mediator, objectListlistenerList| Constructor and Description |
|---|
OverrideEmbeddableAttributeTableModel(ProjectController mediator,
Object eventSource,
Collection<EmbeddableAttribute> embAttr,
ObjAttribute attr) |
| Modifier and Type | Method and Description |
|---|---|
ObjAttribute |
getAttribute() |
CellEditorForAttributeTable |
getCellEditor() |
int |
getColumnCount() |
String |
getColumnName(int column) |
Class<?> |
getElementsClass()
Returns ObjAttribute class.
|
EmbeddableAttribute |
getEmbeddableAttribute(int row) |
List<EmbeddableAttribute> |
getEmbeddableList() |
Map<String,String> |
getOverrideAttr() |
Object |
getValueAt(int row,
int column) |
boolean |
isAttributeOverrideChange() |
boolean |
isCellEditable(int row,
int col) |
boolean |
isColumnSortable(int sortCol) |
protected void |
orderList()
Orders internal object list.
|
CellEditorForAttributeTable |
setCellEditor(Collection<String> nameAttr,
CayenneTable table) |
void |
setComboBoxes(Collection<String> nameAttr,
int column) |
void |
setUpdatedValueAt(Object value,
int row,
int col)
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, getColumnClass, getListeners, getTableModelListeners, removeTableModelListenerprotected List<EmbeddableAttribute> embeddableList
public OverrideEmbeddableAttributeTableModel(ProjectController mediator, Object eventSource, Collection<EmbeddableAttribute> embAttr, ObjAttribute attr)
public List<EmbeddableAttribute> getEmbeddableList()
protected void orderList()
CayenneTableModelgetOrderingKey is used
for comparison.orderList in class CayenneTableModelpublic Class<?> getElementsClass()
getElementsClass in class CayenneTableModelpublic void setUpdatedValueAt(Object value, int row, int col)
CayenneTableModelsetUpdatedValueAt in class CayenneTableModelpublic boolean isAttributeOverrideChange()
public CellEditorForAttributeTable setCellEditor(Collection<String> nameAttr, CayenneTable table)
public CellEditorForAttributeTable getCellEditor()
public boolean isCellEditable(int row,
int col)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic EmbeddableAttribute getEmbeddableAttribute(int row)
public int getColumnCount()
public Object getValueAt(int row, int column)
public String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic void setComboBoxes(Collection<String> nameAttr, int column)
public ObjAttribute getAttribute()
public 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.