public abstract class AbstractLimaTableModel<E> extends AbstractTableModel
| Modifier and Type | Field and Description |
|---|---|
protected List<Column<AbstractLimaTableModel<E>>> |
columns |
protected Comparator<E> |
comparator |
protected ErrorHelper |
errorHelper |
protected List<E> |
values |
listenerList| Constructor and Description |
|---|
AbstractLimaTableModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(Collection<E> values) |
void |
addColumn(Column column) |
void |
addValue(E value) |
void |
clear() |
boolean |
contains(E value) |
E |
get(int row) |
Column |
getColumn(int column) |
Class<?> |
getColumnClass(int column) |
int |
getColumnCount() |
String |
getColumnName(int column) |
int |
getRowCount() |
Object |
getValueAt(int row,
int column) |
List<E> |
getValues() |
int |
indexOf(E value) |
protected abstract void |
initColumn() |
boolean |
isCellEditable(int row,
int column)
To set cells editable or not
|
void |
remove(E value) |
void |
remove(int row) |
void |
removeAll(Collection<E> values) |
void |
setComparator(Comparator<E> comparator) |
void |
setValue(int row,
E value) |
void |
setValueAt(Object value,
int row,
int column) |
void |
setValues(Collection<E> values) |
int |
size() |
void |
sort() |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerprotected List<Column<AbstractLimaTableModel<E>>> columns
protected Comparator<E> comparator
protected ErrorHelper errorHelper
protected abstract void initColumn()
public void setComparator(Comparator<E> comparator)
public void sort()
public void setValues(Collection<E> values)
public void setValue(int row,
E value)
public void addValue(E value)
public void addAll(Collection<E> values)
public void clear()
public void remove(E value)
public void removeAll(Collection<E> values)
public void remove(int row)
public E get(int row)
public int indexOf(E value)
public boolean contains(E value)
public void addColumn(Column column)
public Column getColumn(int column)
public int getColumnCount()
public int getRowCount()
public int size()
public Class<?> getColumnClass(int column)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic Object getValueAt(int row, int column)
public boolean isCellEditable(int row,
int column)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic void setValueAt(Object value, int row, int column)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelCopyright © 2008–2015 CodeLutin. All rights reserved.