Class AttributeSelectionPanel.AttributeTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- adams.gui.tools.wekainvestigator.tab.preprocesstab.AttributeSelectionPanel.AttributeTableModel
-
- All Implemented Interfaces:
Serializable
,TableModel
- Enclosing class:
- AttributeSelectionPanel
public static class AttributeSelectionPanel.AttributeTableModel extends AbstractTableModel
A table model that looks at the names of attributes and maintains a list of attributes that have been "selected".- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected weka.core.Instances
m_Instances
The instances who's attribute structure we are reporting-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description AttributeTableModel(weka.core.Instances instances)
Creates the tablemodel with the given set of instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
getColumnClass(int col)
Gets the class of elements in a column.int
getColumnCount()
Gets the number of columns: 3String
getColumnName(int column)
Gets the name for a column.weka.core.Instances
getInstances()
Returns the underlying instances.int
getRowCount()
Gets the number of attributes.Object
getValueAt(int row, int column)
Gets a table cellvoid
setInstances(weka.core.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, isCellEditable, removeTableModelListener, setValueAt
-
-
-
-
Method Detail
-
setInstances
public void setInstances(weka.core.Instances instances)
Sets the tablemodel to look at a new set of instances.- Parameters:
instances
- the new set of Instances.
-
getInstances
public weka.core.Instances getInstances()
Returns the underlying instances.- Returns:
- the data
-
getRowCount
public int getRowCount()
Gets the number of attributes.- Returns:
- the number of attributes.
-
getColumnCount
public int getColumnCount()
Gets the number of columns: 3- Returns:
- 3
-
getValueAt
public Object getValueAt(int row, int column)
Gets a table cell- Parameters:
row
- the row indexcolumn
- the column index- Returns:
- the value at row, column
-
getColumnName
public String getColumnName(int column)
Gets the name for a column.- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
- Parameters:
column
- the column index.- Returns:
- the name of the column.
-
getColumnClass
public Class<?> getColumnClass(int col)
Gets the class of elements in a column.- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
- Parameters:
col
- the column index.- Returns:
- the class of elements in the column.
-
-