Class ArrayTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- org.pentaho.reporting.libraries.designtime.swing.table.ArrayTableModel
-
- All Implemented Interfaces:
Serializable
,TableModel
,BulkDataProvider
,PropertyTableModel
public class ArrayTableModel extends AbstractTableModel implements BulkDataProvider, PropertyTableModel
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description ArrayTableModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, removeTableModelListener
-
-
-
-
Method Detail
-
isEditable
public boolean isEditable()
-
setEditable
public void setEditable(boolean editable)
-
getData
public Object[] getData()
-
setData
public <T> void setData(T[] data, Class<T> componentType)
-
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interfaceTableModel
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interfaceTableModel
-
getValueAt
public Object getValueAt(int rowIndex, int columnIndex)
- Specified by:
getValueAt
in interfaceTableModel
-
setValueAt
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex)
- Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
-
getColumnClass
public Class getColumnClass(int columnIndex)
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
getColumnName
public String getColumnName(int column)
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
add
public void add(Object o)
-
add
public void add(int idx, Object item)
-
get
public Object get(int index)
-
remove
public void remove(int index)
-
clear
public void clear()
-
toArray
public Object[] toArray()
-
getSize
public int getSize()
-
getBulkDataSize
public int getBulkDataSize()
- Specified by:
getBulkDataSize
in interfaceBulkDataProvider
-
getBulkData
public Object[] getBulkData()
- Specified by:
getBulkData
in interfaceBulkDataProvider
-
setBulkData
public void setBulkData(Object[] data)
- Specified by:
setBulkData
in interfaceBulkDataProvider
-
getClassForCell
public Class getClassForCell(int row, int column)
- Specified by:
getClassForCell
in interfacePropertyTableModel
-
getType
public Class getType()
-
setType
public void setType(Class type)
-
getPropertyEditorType
public Class getPropertyEditorType()
-
setPropertyEditorType
public void setPropertyEditorType(Class propertyEditorType)
-
getEditorForCell
public PropertyEditor getEditorForCell(int row, int column)
- Specified by:
getEditorForCell
in interfacePropertyTableModel
-
-