org.csstudio.logging.ui
Class LabelFieldEditor

java.lang.Object
  extended by FieldEditor
      extended by org.csstudio.logging.ui.LabelFieldEditor

public class LabelFieldEditor
extends FieldEditor

Pseudo FieldEditor that displays a text

While the FieldEditorPreferencePage is convenient for handling the preference access, it does not offer many layout options.

This 'FieldEditor' can be added to simply display a text and an optional separator. It is no true FieldEditor, it is not connected to any preference.

Author:
Kay Kasemir

Constructor Summary
LabelFieldEditor(java.lang.String label_text, boolean with_separator, Composite parent)
          Initialize
 
Method Summary
protected  void adjustForNumColumns(int numColumns)
          
protected  void doFillIntoGrid(Composite parent, int numColumns)
          
protected  void doLoad()
          Do not perform any preference access
protected  void doLoadDefault()
          Do not perform any preference access
protected  void doStore()
          Do not perform any preference access
 int getNumberOfControls()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelFieldEditor

public LabelFieldEditor(java.lang.String label_text,
                        boolean with_separator,
                        Composite parent)
Initialize

Parameters:
label_text - Text to display
with_separator - Include separator before the label?
parent - Parent widget
Method Detail

getNumberOfControls

public int getNumberOfControls()


doFillIntoGrid

protected void doFillIntoGrid(Composite parent,
                              int numColumns)


adjustForNumColumns

protected void adjustForNumColumns(int numColumns)


doLoad

protected void doLoad()
Do not perform any preference access


doLoadDefault

protected void doLoadDefault()
Do not perform any preference access


doStore

protected void doStore()
Do not perform any preference access