public abstract class RecordRowTableModel extends AbstractRecordTableModel implements SortableTableModel, CellEditorListener
| Modifier and Type | Field and Description |
|---|---|
static String |
LOADING_VALUE |
listenerList| Constructor and Description |
|---|
RecordRowTableModel(RecordDefinition recordDefinition) |
RecordRowTableModel(RecordDefinition recordDefinition,
Collection<String> fieldNames) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearSortedColumns() |
void |
dispose() |
void |
editingCanceled(ChangeEvent event) |
void |
editingStopped(ChangeEvent event) |
FieldDefinition |
getColumnAttribute(int columnIndex) |
Class<?> |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
String |
getColumnName(int columnIndex) |
int |
getFieldIndex(String fieldName) |
String |
getFieldName(int columnIndex) |
String |
getFieldName(int rowIndex,
int columnIndex) |
int |
getFieldsOffset() |
List<String> |
getFieldTitles() |
abstract <V extends Record> |
getRecord(int row) |
<V extends Record> |
getRecords(int[] rows) |
Map<Integer,SortOrder> |
getSortedColumns() |
SortOrder |
getSortOrder(int columnIndex) |
RecordRowTable |
getTable() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
boolean |
isSelected(boolean selected,
int rowIndex,
int columnIndex) |
void |
setFieldNames(Collection<String> fieldNames) |
void |
setFieldNamesAndTitles(Collection<String> fieldNames,
List<String> fieldTitles) |
void |
setFieldsOffset(int attributesOffset) |
void |
setFieldTitles(List<String> fieldTitles) |
void |
setSortedColumns(Map<Integer,SortOrder> sortedColumns) |
SortOrder |
setSortOrder(int columnIndex)
Set the model to sort on the column.
|
void |
setSortOrder(String idFieldName) |
void |
setTable(RecordRowTable table) |
void |
setValueAt(Object value,
int rowIndex,
int columnIndex) |
String |
toCopyValue(int rowIndex,
int attributeIndex,
Object objectValue) |
String |
toDisplayValue(int rowIndex,
int attributeIndex,
Object objectValue) |
protected String |
toDisplayValueInternal(int rowIndex,
int attributeIndex,
Object objectValue) |
addReadOnlyFieldNames, addReadOnlyFieldNames, getReadOnlyFieldNames, getRecordDefinition, isEditable, isReadOnly, loadCodeTable, setEditable, setReadOnlyFieldNames, setRecordDefinition, toObjectValuefirePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getEditorField, getMenu, getMenu, getPropertyChangeSupport, isEmpty, setMenuaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddTableModelListener, getRowCount, removeTableModelListenergetPropertyChangeSupportpublic static final String LOADING_VALUE
public RecordRowTableModel(RecordDefinition recordDefinition)
public RecordRowTableModel(RecordDefinition recordDefinition, Collection<String> fieldNames)
public void clearSortedColumns()
@PreDestroy public void dispose()
dispose in class AbstractRecordTableModelpublic void editingCanceled(ChangeEvent event)
editingCanceled in interface CellEditorListenerpublic void editingStopped(ChangeEvent event)
editingStopped in interface CellEditorListenerpublic FieldDefinition getColumnAttribute(int columnIndex)
public Class<?> getColumnClass(int columnIndex)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic int getColumnCount()
getColumnCount in interface TableModelpublic String getColumnName(int columnIndex)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic int getFieldIndex(String fieldName)
public String getFieldName(int columnIndex)
getFieldName in class AbstractRecordTableModelpublic String getFieldName(int rowIndex, int columnIndex)
getFieldName in class AbstractRecordTableModelpublic int getFieldsOffset()
public abstract <V extends Record> V getRecord(int row)
public SortOrder getSortOrder(int columnIndex)
getSortOrder in interface SortableTableModelpublic RecordRowTable getTable()
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt in interface TableModelpublic boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic boolean isSelected(boolean selected,
int rowIndex,
int columnIndex)
isSelected in class AbstractRecordTableModelpublic void setFieldNames(Collection<String> fieldNames)
public void setFieldNamesAndTitles(Collection<String> fieldNames, List<String> fieldTitles)
public void setFieldsOffset(int attributesOffset)
public SortOrder setSortOrder(int columnIndex)
SortableTableModelsetSortOrder in interface SortableTableModelcolumnIndex - The column to set as sorted.public void setSortOrder(String idFieldName)
public void setTable(RecordRowTable table)
public void setValueAt(Object value, int rowIndex, int columnIndex)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelpublic String toCopyValue(int rowIndex, int attributeIndex, Object objectValue)
toCopyValue in class AbstractTableModelpublic final String toDisplayValue(int rowIndex, int attributeIndex, Object objectValue)
toDisplayValue in class AbstractRecordTableModelCopyright © 2015 Revolution Systems Inc.. All rights reserved.