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 voidadd(int idx, Object item)voidadd(Object o)voidclear()Objectget(int index)Object[]getBulkData()intgetBulkDataSize()ClassgetClassForCell(int row, int column)ClassgetColumnClass(int columnIndex)intgetColumnCount()StringgetColumnName(int column)Object[]getData()PropertyEditorgetEditorForCell(int row, int column)ClassgetPropertyEditorType()intgetRowCount()intgetSize()ClassgetType()ObjectgetValueAt(int rowIndex, int columnIndex)booleanisCellEditable(int rowIndex, int columnIndex)booleanisEditable()voidremove(int index)voidsetBulkData(Object[] data)<T> voidsetData(T[] data, Class<T> componentType)voidsetEditable(boolean editable)voidsetPropertyEditorType(Class propertyEditorType)voidsetType(Class type)voidsetValueAt(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:
getRowCountin interfaceTableModel
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCountin interfaceTableModel
-
getValueAt
public Object getValueAt(int rowIndex, int columnIndex)
- Specified by:
getValueAtin interfaceTableModel
-
setValueAt
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex)- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
getColumnClass
public Class getColumnClass(int columnIndex)
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
getColumnName
public String getColumnName(int column)
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein 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:
getBulkDataSizein interfaceBulkDataProvider
-
getBulkData
public Object[] getBulkData()
- Specified by:
getBulkDatain interfaceBulkDataProvider
-
setBulkData
public void setBulkData(Object[] data)
- Specified by:
setBulkDatain interfaceBulkDataProvider
-
getClassForCell
public Class getClassForCell(int row, int column)
- Specified by:
getClassForCellin 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:
getEditorForCellin interfacePropertyTableModel
-
-