public class ObjAttributeTableModel extends CayenneTableModel<ObjAttributeWrapper>
CayenneTableModel.PropertyComparator| Modifier and Type | Field and Description |
|---|---|
static int |
DB_ATTRIBUTE |
static int |
DB_ATTRIBUTE_TYPE |
protected DbEntity |
dbEntity |
protected ObjEntity |
entity |
static int |
INHERITED |
static int |
LOCKING |
static int |
OBJ_ATTRIBUTE |
static int |
OBJ_ATTRIBUTE_TYPE |
eventSource, mediator, objectListlistenerList| Constructor and Description |
|---|
ObjAttributeTableModel(ObjEntity entity,
ProjectController mediator,
Object eventSource) |
| Modifier and Type | Method and Description |
|---|---|
ObjAttributeWrapper |
getAttribute(int row) |
CellEditorForAttributeTable |
getCellEditor() |
Class |
getColumnClass(int col) |
int |
getColumnCount() |
String |
getColumnName(int column) |
DbEntity |
getDbEntity() |
Class<?> |
getElementsClass()
Returns ObjAttribute class.
|
ObjEntity |
getEntity() |
CayenneTable |
getTable() |
Object |
getValueAt(int row,
int column) |
boolean |
isCellEditable(int row,
int col) |
boolean |
isColumnSortable(int sortCol) |
boolean |
isValid() |
protected void |
orderList()
Orders internal object list.
|
void |
resetDbEntity()
Refreshes DbEntity to current db entity within ObjEntity.
|
void |
resetModel()
Correct errors that attributes have.
|
CellEditorForAttributeTable |
setCellEditor(Collection<String> nameAttr,
CayenneTable table) |
void |
setComboBoxes(Collection<String> nameAttr,
int column) |
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, moveRowDown, moveRowUp, removeRow, setValueAt, sortByElementProperty, swapRowsaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerpublic static final int INHERITED
public static final int OBJ_ATTRIBUTE
public static final int OBJ_ATTRIBUTE_TYPE
public static final int DB_ATTRIBUTE
public static final int DB_ATTRIBUTE_TYPE
public static final int LOCKING
protected ObjEntity entity
protected DbEntity dbEntity
public ObjAttributeTableModel(ObjEntity entity, ProjectController mediator, Object eventSource)
protected void orderList()
CayenneTableModelgetOrderingKey is used
for comparison.orderList in class CayenneTableModel<ObjAttributeWrapper>public CayenneTable getTable()
public Class getColumnClass(int col)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic Class<?> getElementsClass()
getElementsClass in class CayenneTableModel<ObjAttributeWrapper>public DbEntity getDbEntity()
public ObjAttributeWrapper getAttribute(int row)
public void resetDbEntity()
public int getColumnCount()
public String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic Object getValueAt(int row, int column)
public CellEditorForAttributeTable setCellEditor(Collection<String> nameAttr, CayenneTable table)
public CellEditorForAttributeTable getCellEditor()
public void resetModel()
resetModel in class CayenneTableModel<ObjAttributeWrapper>public boolean isValid()
isValid in class CayenneTableModel<ObjAttributeWrapper>public void setUpdatedValueAt(Object value, int row, int column)
CayenneTableModelsetUpdatedValueAt in class CayenneTableModel<ObjAttributeWrapper>public void setComboBoxes(Collection<String> nameAttr, int column)
public boolean isCellEditable(int row,
int col)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic ObjEntity getEntity()
public void sortByColumn(int sortCol,
boolean isAscent)
sortByColumn in class CayenneTableModel<ObjAttributeWrapper>public boolean isColumnSortable(int sortCol)
isColumnSortable in class CayenneTableModel<ObjAttributeWrapper>Copyright © 2001–2015 Apache Cayenne. All rights reserved.