|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.preference.FieldEditor
org.eclipse.jface.preference.StringFieldEditor
de.cau.cs.kieler.core.ui.util.FloatFieldEditor
public class FloatFieldEditor
Field editor for input of float values.
Field Summary |
---|
Fields inherited from class org.eclipse.jface.preference.StringFieldEditor |
---|
oldValue, UNLIMITED, VALIDATE_ON_FOCUS_LOST, VALIDATE_ON_KEY_STROKE |
Fields inherited from class org.eclipse.jface.preference.FieldEditor |
---|
HORIZONTAL_GAP, IS_VALID, VALUE |
Constructor Summary | |
---|---|
FloatFieldEditor(String name,
String labelText,
Composite parent)
Creates a new float field editor. |
Method Summary | |
---|---|
protected boolean |
checkState()
|
protected void |
doLoad()
|
protected void |
doLoadDefault()
|
protected void |
doStore()
|
float |
getFloatValue()
Parses the input string as a float value. |
void |
setValidRange(float min,
float max)
Sets the range of valid float values for this field editor. |
Methods inherited from class org.eclipse.jface.preference.StringFieldEditor |
---|
adjustForNumColumns, doCheckState, doFillIntoGrid, getErrorMessage, getNumberOfControls, getStringValue, getTextControl, getTextControl, isEmptyStringAllowed, isValid, refreshValidState, setEmptyStringAllowed, setEnabled, setErrorMessage, setFocus, setStringValue, setTextLimit, setValidateStrategy, showErrorMessage, valueChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FloatFieldEditor(String name, String labelText, Composite parent)
name
- the name of the preference this field editor works onlabelText
- the label text of the field editorparent
- the parent of the field editor's controlMethod Detail |
---|
protected boolean checkState()
checkState
in class StringFieldEditor
protected void doLoad()
doLoad
in class StringFieldEditor
protected void doLoadDefault()
doLoadDefault
in class StringFieldEditor
protected void doStore()
doStore
in class StringFieldEditor
public void setValidRange(float min, float max)
min
- lower bound for float valuesmax
- upper bound for float valuespublic float getFloatValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |