public class ScaleFieldEditorWithValue
extends org.eclipse.jface.preference.ScaleFieldEditor
IScaleValueLabelProvider and show the value as a Label.ScaleFieldEditor| Constructor and Description |
|---|
ScaleFieldEditorWithValue(String name,
String labelText,
org.eclipse.swt.widgets.Composite parent)
Create a new scale field editor with min/max/current value Labels.
|
ScaleFieldEditorWithValue(String name,
String labelText,
org.eclipse.swt.widgets.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, setPageIncrementdispose, fillIntoGrid, getFieldEditorFontName, getLabelControl, getLabelText, getPreferenceName, getPreferenceStore, isValid, load, loadDefault, presentsDefaultValue, setEnabled, setLabelText, setPage, setPreferenceName, setPreferencePage, setPreferenceStore, setPropertyChangeListener, storepublic ScaleFieldEditorWithValue(String name, String labelText, org.eclipse.swt.widgets.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, org.eclipse.swt.widgets.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 org.eclipse.jface.preference.ScaleFieldEditorpublic void setScaleValueLabelProvider(IScaleValueLabelProvider scaleValueLabelProvider)
IScaleValueLabelProvider to be used to obtain current
Scale value.scaleValueLabelProvider - target IScaleValueLabelProvider