Class LabelFieldEditor

java.lang.Object
org.eclipse.jface.preference.FieldEditor
org.yamcs.studio.core.ui.prefs.LabelFieldEditor
Direct Known Subclasses:
SpacerFieldEditor

public class LabelFieldEditor extends FieldEditor
A field editor for displaying labels not associated with other widgets.
  • Constructor Details

    • LabelFieldEditor

      public LabelFieldEditor(String value, Composite parent)
      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 class FieldEditor
    • doFillIntoGrid

      protected void doFillIntoGrid(Composite parent, int numColumns)
      Fills the field editor's controls into the given parent.
      Specified by:
      doFillIntoGrid in class FieldEditor
    • getNumberOfControls

      public int getNumberOfControls()
      Returns the number of controls in the field editor.
      Specified by:
      getNumberOfControls in class FieldEditor
    • doLoad

      protected void doLoad()
      Specified by:
      doLoad in class FieldEditor
    • doLoadDefault

      protected void doLoadDefault()
      Specified by:
      doLoadDefault in class FieldEditor
    • doStore

      protected void doStore()
      Specified by:
      doStore in class FieldEditor