com.rapidminer.gui.dialog
Class AttributeWeightCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
com.rapidminer.gui.dialog.AttributeWeightCellEditor
- All Implemented Interfaces:
- PropertyValueCellEditor, java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor, javax.swing.table.TableCellRenderer
public class AttributeWeightCellEditor
- extends javax.swing.AbstractCellEditor
- implements PropertyValueCellEditor
Editor for attribute weights. A text field for numeric values and three
buttons. The first button sets the weight to zero, the second button to 1,
and the third resets the value to the old weight. This editor is used by an
AttributeWeightsTableModel.
- Author:
- Ingo Mierswa
ingomierswa Exp $
- See Also:
- Serialized Form
| Fields inherited from class javax.swing.AbstractCellEditor |
changeEvent, listenerList |
|
Method Summary |
protected void |
addButton(javax.swing.JButton button,
int gridwidth)
|
protected javax.swing.JButton |
createValueButton(java.lang.String name,
java.lang.String newValue)
|
java.lang.Object |
getCellEditorValue()
|
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int col)
|
java.awt.Component |
getTableCellRendererComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
|
void |
setOperator(Operator operator)
Does nothing. |
boolean |
useEditorAsRenderer()
Returns true if this editor should also be used as renderer. |
| Methods inherited from class javax.swing.AbstractCellEditor |
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.CellEditor |
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing |
AttributeWeightCellEditor
public AttributeWeightCellEditor(double oldValue)
setOperator
public void setOperator(Operator operator)
- Does nothing.
- Specified by:
setOperator in interface PropertyValueCellEditor
createValueButton
protected javax.swing.JButton createValueButton(java.lang.String name,
java.lang.String newValue)
addButton
protected void addButton(javax.swing.JButton button,
int gridwidth)
getCellEditorValue
public java.lang.Object getCellEditorValue()
- Specified by:
getCellEditorValue in interface javax.swing.CellEditor
getTableCellEditorComponent
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int col)
- Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor
getTableCellRendererComponent
public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
- Specified by:
getTableCellRendererComponent in interface javax.swing.table.TableCellRenderer
useEditorAsRenderer
public boolean useEditorAsRenderer()
- Description copied from interface:
PropertyValueCellEditor
- Returns true if this editor should also be used as renderer. Should not be the case
for components with frames around the component like JTextFields.
- Specified by:
useEditorAsRenderer in interface PropertyValueCellEditor
Copyright © 2001-2009 by Rapid-I