public class ArrayTableModel extends AbstractTableModel implements BulkDataProvider, PropertyTableModel
Constructor and Description |
---|
ArrayTableModel() |
Modifier and Type | Method and Description |
---|---|
void |
add(int idx,
Object item) |
void |
add(Object o) |
void |
clear() |
Object |
get(int index) |
Object[] |
getBulkData() |
int |
getBulkDataSize() |
Class |
getClassForCell(int row,
int column) |
Class |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
String |
getColumnName(int column) |
Object[] |
getData() |
PropertyEditor |
getEditorForCell(int row,
int column) |
Class |
getPropertyEditorType() |
int |
getRowCount() |
int |
getSize() |
Class |
getType() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
boolean |
isEditable() |
void |
remove(int index) |
void |
setBulkData(Object[] data) |
<T> void |
setData(T[] data,
Class<T> componentType) |
void |
setEditable(boolean editable) |
void |
setPropertyEditorType(Class propertyEditorType) |
void |
setType(Class type) |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex) |
Object[] |
toArray() |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTableModelListener, removeTableModelListener
public boolean isEditable()
public void setEditable(boolean editable)
public Object[] getData()
public <T> void setData(T[] data, Class<T> componentType)
public int getRowCount()
getRowCount
in interface TableModel
public int getColumnCount()
getColumnCount
in interface TableModel
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public Class getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public void add(Object o)
public void add(int idx, Object item)
public Object get(int index)
public void remove(int index)
public void clear()
public Object[] toArray()
public int getSize()
public int getBulkDataSize()
getBulkDataSize
in interface BulkDataProvider
public Object[] getBulkData()
getBulkData
in interface BulkDataProvider
public void setBulkData(Object[] data)
setBulkData
in interface BulkDataProvider
public Class getClassForCell(int row, int column)
getClassForCell
in interface PropertyTableModel
public Class getType()
public void setType(Class type)
public Class getPropertyEditorType()
public void setPropertyEditorType(Class propertyEditorType)
public PropertyEditor getEditorForCell(int row, int column)
getEditorForCell
in interface PropertyTableModel