public class ScaleFieldEditorWithValue extends ScaleFieldEditor
IScaleValueLabelProvider
and show the value as a Label.ScaleFieldEditor
IS_VALID, VALUE
Constructor and Description |
---|
ScaleFieldEditorWithValue(String name,
String labelText,
Composite parent)
Create a new scale field editor with min/max/current value Labels.
|
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.
|
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfControls() |
void |
setScaleValueLabelProvider(IScaleValueLabelProvider scaleValueLabelProvider)
Set new
IScaleValueLabelProvider to be used to obtain current
Scale value. |
getIncrement, getMaximum, getMinimum, getPageIncrement, getScaleControl, setFocus, setIncrement, setMaximum, setMinimum, setPageIncrement
dispose, fillIntoGrid, getFieldEditorFontName, getLabelControl, getLabelText, getPreferenceName, getPreferenceStore, isValid, load, loadDefault, presentsDefaultValue, setEnabled, setLabelText, setPage, setPreferenceName, setPreferencePage, setPreferenceStore, setPropertyChangeListener, store
public ScaleFieldEditorWithValue(String name, String labelText, Composite parent)
IScaleValueLabelProvider
. Default
IScaleValueLabelProvider
will convert current value by using
Integer.toString().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 controlpublic ScaleFieldEditorWithValue(String name, String labelText, Composite parent, int min, int max, int increment, int pageIncrement)
IScaleValueLabelProvider
. Default
IScaleValueLabelProvider
will convert current value by using
Integer.toString().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).public int getNumberOfControls()
getNumberOfControls
in class ScaleFieldEditor
public void setScaleValueLabelProvider(IScaleValueLabelProvider scaleValueLabelProvider)
IScaleValueLabelProvider
to be used to obtain current
Scale value.scaleValueLabelProvider
- target IScaleValueLabelProvider