|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
weka.gui.AttributeListPanel.AttributeTableModel
A table model that looks at the names of attributes.
Field Summary | |
protected Instances |
m_Instances
The instances who's attribute structure we are reporting |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
AttributeListPanel.AttributeTableModel(Instances instances)
Creates the tablemodel with the given set of instances. |
Method Summary | |
java.lang.Class |
getColumnClass(int col)
Gets the class of elements in a column. |
int |
getColumnCount()
Gets the number of columns: 2 |
java.lang.String |
getColumnName(int column)
Gets the name for a column. |
int |
getRowCount()
Gets the number of attributes. |
java.lang.Object |
getValueAt(int row,
int column)
Gets a table cell |
boolean |
isCellEditable(int row,
int col)
Returns false |
void |
setInstances(Instances instances)
Sets the tablemodel to look at a new set of instances. |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Instances m_Instances
Constructor Detail |
public AttributeListPanel.AttributeTableModel(Instances instances)
instances
- the initial set of InstancesMethod Detail |
public void setInstances(Instances instances)
instances
- the new set of Instances.public int getRowCount()
public int getColumnCount()
public java.lang.Object getValueAt(int row, int column)
row
- the row indexcolumn
- the column index
public java.lang.String getColumnName(int column)
column
- the column index.
public java.lang.Class getColumnClass(int col)
col
- the column index.
public boolean isCellEditable(int row, int col)
row
- ignoredcol
- ignored
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |