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, setValueAt
public 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 TableModel
getColumnClass
in class AbstractTableModel
column
- The column index.public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
column
- The column.Copyright © 2017 Hitachi Vantara. All rights reserved.