public class IconTableModel extends AbstractTableModel
TableModel implementation used for demonstration purposes.listenerList| Constructor and Description |
|---|
IconTableModel()
Constructs a new IconTableModel, initially empty.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addIconEntry(String name,
String category,
Image icon,
Long size)
Adds a new entry to the table model.
|
void |
clear() |
Class |
getColumnClass(int column)
Returns the class of the specified column.
|
int |
getColumnCount()
Returns the number of columns in the table model.
|
String |
getColumnName(int column)
Returns the name of the specified column.
|
int |
getRowCount()
Returns the number of rows in the table model.
|
Object |
getValueAt(int row,
int column)
Returns the data item at the specified row and column.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtpublic IconTableModel()
protected void addIconEntry(String name, String category, Image icon, Long size)
name - The icon name.category - The category name.icon - The icon.size - The size of the icon image in bytes.public void clear()
public int getRowCount()
public int getColumnCount()
public Object getValueAt(int row, int column)
row - The row index.column - The column index.public Class getColumnClass(int column)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelcolumn - The column index.public String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelcolumn - The column.Copyright © 2018 Pentaho. All rights reserved.