org.eclipse.actf.ui.preferences
Class ScaleFieldEditorWithValue
java.lang.Object
org.eclipse.jface.preference.FieldEditor
org.eclipse.jface.preference.ScaleFieldEditor
org.eclipse.actf.ui.preferences.ScaleFieldEditorWithValue
public class ScaleFieldEditorWithValue
- extends ScaleFieldEditor
A field editor for an integer type preference. It obtain current Scale value
from IScaleValueLabelProvider
and show the value as a Label.
- See Also:
ScaleFieldEditor
Methods inherited from class org.eclipse.jface.preference.FieldEditor |
dispose, fillIntoGrid, getFieldEditorFontName, getLabelControl, getLabelText, getPreferenceName, getPreferenceStore, isValid, load, loadDefault, presentsDefaultValue, setEnabled, setLabelText, setPage, setPreferenceName, setPreferencePage, setPreferenceStore, setPropertyChangeListener, store |
ScaleFieldEditorWithValue
public ScaleFieldEditorWithValue(String name,
String labelText,
Composite parent)
- Create a new scale field editor with min/max/current value Labels. The
current Scale value is converted to String by using
IScaleValueLabelProvider
. Default
IScaleValueLabelProvider
will convert current value by using
Integer.toString().
- Parameters:
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 control
ScaleFieldEditorWithValue
public ScaleFieldEditorWithValue(String name,
String labelText,
Composite parent,
int min,
int max,
int increment,
int pageIncrement)
- Create a new scale field editor with min/max/current value Labels. The
current Scale value is converted to String by using
IScaleValueLabelProvider
. Default
IScaleValueLabelProvider
will convert current value by using
Integer.toString().
- Parameters:
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 controlmin
- the value used for Scale.setMinimum(int).max
- the value used for Scale.setMaximum(int).increment
- the value used for Scale.setIncrement(int).pageIncrement
- the value used for Scale.setPageIncrement(int).
getNumberOfControls
public int getNumberOfControls()
- Overrides:
getNumberOfControls
in class ScaleFieldEditor
setScaleValueLabelProvider
public void setScaleValueLabelProvider(IScaleValueLabelProvider scaleValueLabelProvider)
- Set new
IScaleValueLabelProvider
to be used to obtain current
Scale value.
- Parameters:
scaleValueLabelProvider
- target IScaleValueLabelProvider