Package org.yamcs.studio.core.ui.prefs
Class LabelFieldEditor
java.lang.Object
org.eclipse.jface.preference.FieldEditor
org.yamcs.studio.core.ui.prefs.LabelFieldEditor
- Direct Known Subclasses:
SpacerFieldEditor
A field editor for displaying labels not associated with other widgets.
-
Field Summary
Fields inherited from class org.eclipse.jface.preference.FieldEditor
HORIZONTAL_GAP, IS_VALID, VALUE
-
Constructor Summary
ConstructorDescriptionLabelFieldEditor
(String value, Composite parent) All labels can use the same preference name since they don't store any preference. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
adjustForNumColumns
(int numColumns) Adjusts the field editor to be displayed correctly for the given number of columns.protected void
doFillIntoGrid
(Composite parent, int numColumns) Fills the field editor's controls into the given parent.protected void
doLoad()
protected void
protected void
doStore()
int
Returns the number of controls in the field editor.Methods inherited from class org.eclipse.jface.preference.FieldEditor
applyFont, checkParent, clearErrorMessage, clearMessage, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, createControl, dispose, fillIntoGrid, fireStateChanged, fireValueChanged, getFieldEditorFontName, getLabelControl, getLabelControl, getLabelText, getPage, getPreferenceName, getPreferencePage, getPreferenceStore, init, isValid, load, loadDefault, presentsDefaultValue, refreshValidState, setButtonLayoutData, setEnabled, setFocus, setLabelText, setPage, setPreferenceName, setPreferencePage, setPreferenceStore, setPresentsDefaultValue, setPropertyChangeListener, showErrorMessage, showMessage, store
-
Constructor Details
-
LabelFieldEditor
All labels can use the same preference name since they don't store any preference.
-
-
Method Details
-
adjustForNumColumns
protected void adjustForNumColumns(int numColumns) Adjusts the field editor to be displayed correctly for the given number of columns.- Specified by:
adjustForNumColumns
in classFieldEditor
-
doFillIntoGrid
Fills the field editor's controls into the given parent.- Specified by:
doFillIntoGrid
in classFieldEditor
-
getNumberOfControls
public int getNumberOfControls()Returns the number of controls in the field editor.- Specified by:
getNumberOfControls
in classFieldEditor
-
doLoad
protected void doLoad()- Specified by:
doLoad
in classFieldEditor
-
doLoadDefault
protected void doLoadDefault()- Specified by:
doLoadDefault
in classFieldEditor
-
doStore
protected void doStore()- Specified by:
doStore
in classFieldEditor
-