public abstract class NTableModel<E> extends AbstractTableModel
listenerList| Constructor and Description |
|---|
NTableModel(String[] columns)
Initializes a new instance of NTableModel class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(E item)
Adds the specified item to the table.
|
void |
clear()
Clears the table.
|
E |
get(int i)
Gets the item specified by index.
|
int |
getColumnCount()
Gets the number of columns.
|
String |
getColumnName(int column)
Gets the name of the specified column.
|
int |
getRowCount()
Gets the number of rows.
|
List<E> |
items()
Gets all items in the current table.
|
void |
remove(E item)
Removes the specified item from the table.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValueAtpublic NTableModel(String[] columns)
columns - Column array.public int getColumnCount()
public int getRowCount()
public void clear()
public E get(int i)
i - Item's index.public void add(E item)
item - The item to be added.public void remove(E item)
item - The item to be removed.public String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelcolumn - Column's index.Copyright © 2016 Neurotechnology. All rights reserved.