org.esa.beam.framework.ui
Class FloatCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
javax.swing.DefaultCellEditor
org.esa.beam.framework.ui.FloatCellEditor
- All Implemented Interfaces:
- Serializable, CellEditor, TableCellEditor, TreeCellEditor
public class FloatCellEditor
- extends DefaultCellEditor
A FloatCellEditor which is able to validate the entered value.
If the value is not valid the cell is marked with a red border and the value is rejected.
The cell value is right aligned.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FloatCellEditor
public FloatCellEditor()
- Creates a new editor. The bounds of the valid value range are set
to
Float.MIN_VALUE and Float.MAX_VALUE
FloatCellEditor
public FloatCellEditor(float minValue,
float maxValue)
- Creates a new editor. The bounds of the valid value range are set
to specified
minValue and maxValue
- Parameters:
minValue - the minimum value of the valid rangemaxValue - the maximum value of the valid range
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
- Specified by:
getTableCellEditorComponent in interface TableCellEditor- Overrides:
getTableCellEditorComponent in class DefaultCellEditor
stopCellEditing
public boolean stopCellEditing()
- Specified by:
stopCellEditing in interface CellEditor- Overrides:
stopCellEditing in class DefaultCellEditor
validateValue
protected boolean validateValue(float value)
getCellEditorValue
public Object getCellEditorValue()
- Specified by:
getCellEditorValue in interface CellEditor- Overrides:
getCellEditorValue in class DefaultCellEditor
Copyright © 2002-2013 Brockmann Consult GmbH. All Rights Reserved.