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:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
clear()
get
(int index) Object[]
int
getClassForCell
(int row, int column) getColumnClass
(int columnIndex) int
getColumnName
(int column) Object[]
getData()
getEditorForCell
(int row, int column) int
int
getSize()
getType()
getValueAt
(int rowIndex, int columnIndex) boolean
isCellEditable
(int rowIndex, int columnIndex) boolean
void
remove
(int index) void
setBulkData
(Object[] data) <T> void
void
setEditable
(boolean editable) void
setPropertyEditorType
(Class propertyEditorType) void
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
-
Constructor Details
-
ArrayTableModel
public ArrayTableModel()
-
-
Method Details
-
isEditable
public boolean isEditable() -
setEditable
public void setEditable(boolean editable) -
getData
-
setData
-
getRowCount
public int getRowCount()- Specified by:
getRowCount
in interfaceTableModel
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCount
in interfaceTableModel
-
getValueAt
- Specified by:
getValueAt
in interfaceTableModel
-
setValueAt
- 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
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
getColumnName
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
add
-
add
-
get
-
remove
public void remove(int index) -
clear
public void clear() -
toArray
-
getSize
public int getSize() -
getBulkDataSize
public int getBulkDataSize()- Specified by:
getBulkDataSize
in interfaceBulkDataProvider
-
getBulkData
- Specified by:
getBulkData
in interfaceBulkDataProvider
-
setBulkData
- Specified by:
setBulkData
in interfaceBulkDataProvider
-
getClassForCell
- Specified by:
getClassForCell
in interfacePropertyTableModel
-
getType
-
setType
-
getPropertyEditorType
-
setPropertyEditorType
-
getEditorForCell
- Specified by:
getEditorForCell
in interfacePropertyTableModel
-