protected class ArffTable.RelationalCellEditor
extends javax.swing.AbstractCellEditor
implements javax.swing.table.TableCellEditor
| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.JButton |
m_Button
the button for opening the dialog
|
protected int |
m_ColumnIndex
the column index this editor is for
|
protected Instances |
m_CurrentInst
the current instances
|
protected int |
m_RowIndex
the row index this editor is for
|
| Constructor and Description |
|---|
RelationalCellEditor(int rowIndex,
int columnIndex)
initializes the editor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getCellEditorValue()
Returns the value contained in the editor.
|
protected Instances |
getInstancesAt(int rowIndex,
int columnIndex)
returns the underlying instances at the given position
|
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
Sets an initial value for the editor.
|
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditingprotected javax.swing.JButton m_Button
protected Instances m_CurrentInst
protected int m_RowIndex
protected int m_ColumnIndex
public RelationalCellEditor(int rowIndex,
int columnIndex)
rowIndex - the row indexcolumnIndex - the column indexprotected Instances getInstancesAt(int rowIndex, int columnIndex)
rowIndex - the row indexcolumnIndex - the column indexpublic java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
getTableCellEditorComponent in interface javax.swing.table.TableCellEditortable - the table this editor belongs tovalue - the value to editisSelected - whether the cell is selectedrow - the row indexcolumn - the column indexpublic java.lang.Object getCellEditorValue()
getCellEditorValue in interface javax.swing.CellEditor