public class FIBTableModel<T> extends AbstractTableModel
Modifier and Type | Class and Description |
---|---|
class |
FIBTableModel.ModelObjectHasChanged |
class |
FIBTableModel.RowMoveForObjectEvent |
protected class |
FIBTableModel.RowObjectModificationTracker |
listenerList
Constructor and Description |
---|
FIBTableModel(FIBTable fibTable,
<any> widget,
FIBController controller)
Stores controls: key is the JButton and value the PropertyListActionListener
|
Modifier and Type | Method and Description |
---|---|
void |
addToColumns(AbstractColumn<T,?> aColumn) |
AbstractColumn<T,?> |
columnAt(int index) |
void |
delete() |
T |
elementAt(int row) |
void |
fireCellUpdated(T editedObject,
int row,
int column) |
void |
fireModelObjectHasChanged(List<T> oldValues,
List<T> newValues)
Notifies all listeners that represented model has changed
|
void |
fireTableRowsUpdated(int firstRow,
int lastRow) |
Class<?> |
getColumnClass(int col) |
int |
getColumnCount() |
String |
getColumnName(int col) |
boolean |
getColumnResizable(int col) |
int |
getDefaultColumnSize(int col) |
FIBTableColumn |
getPropertyListColumnWithTitle(String title) |
int |
getRowCount() |
FIBTable |
getTable() |
protected <any> |
getTableWidget()
Deprecated.
model should not have access to its view nor its controller
|
Object |
getValueAt(int row,
int col) |
List<T> |
getValues() |
<any> |
getWidget() |
int |
indexOf(T object) |
boolean |
isCellEditable(int row,
int col) |
void |
removeFromColumns(AbstractColumn<T,?> aColumn) |
void |
setValueAt(Object value,
int row,
int col) |
void |
setValues(Collection<T> values) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public FIBTableModel(FIBTable fibTable, <any> widget, FIBController controller)
public FIBTable getTable()
public void delete()
public <any> getWidget()
public void setValues(Collection<T> values)
public void fireModelObjectHasChanged(List<T> oldValues, List<T> newValues)
public int getRowCount()
public T elementAt(int row)
public int indexOf(T object)
public void addToColumns(AbstractColumn<T,?> aColumn)
public void removeFromColumns(AbstractColumn<T,?> aColumn)
public AbstractColumn<T,?> columnAt(int index)
public int getColumnCount()
public String getColumnName(int col)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public int getDefaultColumnSize(int col)
public boolean getColumnResizable(int col)
public Class<?> getColumnClass(int col)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public boolean isCellEditable(int row, int col)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public Object getValueAt(int row, int col)
public void setValueAt(Object value, int row, int col)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
public void fireCellUpdated(T editedObject, int row, int column)
public FIBTableColumn getPropertyListColumnWithTitle(String title)
public void fireTableRowsUpdated(int firstRow, int lastRow)
fireTableRowsUpdated
in class AbstractTableModel
@Deprecated protected <any> getTableWidget()
Copyright © 2022 Openflexo. All rights reserved.