RSE
Release 3.3

org.eclipse.rse.ui.propertypages
Class SystemBooleanFieldEditor

java.lang.Object
  extended by org.eclipse.jface.preference.FieldEditor
      extended by org.eclipse.jface.preference.BooleanFieldEditor
          extended by org.eclipse.rse.ui.propertypages.SystemBooleanFieldEditor

public class SystemBooleanFieldEditor
extends BooleanFieldEditor

Thin subclass so we can support setToolTipText!!


Field Summary
 
Fields inherited from class org.eclipse.jface.preference.BooleanFieldEditor
DEFAULT, SEPARATE_LABEL
 
Fields inherited from class org.eclipse.jface.preference.FieldEditor
HORIZONTAL_GAP, IS_VALID, VALUE
 
Constructor Summary
protected SystemBooleanFieldEditor()
          Constructor for SystemBooleanFieldEditor
  SystemBooleanFieldEditor(String name, ResourceBundle rb, String labelKey, Composite parent)
          Constructor for SystemBooleanFieldEditor, using DEFAULT for the style, and specifying a resource bundle and key from which the label (_LABEL and tooltip text (_TOOLTIP are retrieved.
  SystemBooleanFieldEditor(String name, String labelText, Composite parent)
          Constructor for SystemBooleanFieldEditor, using DEFAULT for the style
  SystemBooleanFieldEditor(String name, String labelText, int style, Composite parent)
          Constructor for SystemBooleanFieldEditor
 
Method Summary
protected  Button getChangeControl(Composite parent)
          Returns the change button for this field editor.
 String getToolTipText()
          Get the tooltip text
 void setEnabled(boolean enablement)
          Method setEnabled
 void setHelp(String helpID)
          Set the help for the control
 void setToolTipText(String tip)
          Set the tooltip text
 
Methods inherited from class org.eclipse.jface.preference.BooleanFieldEditor
adjustForNumColumns, doFillIntoGrid, doLoad, doLoadDefault, doStore, getBooleanValue, getDescriptionControl, getNumberOfControls, setEnabled, setFocus, setLabelText, valueChanged
 
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, setPage, setPreferenceName, setPreferencePage, setPreferenceStore, setPresentsDefaultValue, setPropertyChangeListener, showErrorMessage, showMessage, store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemBooleanFieldEditor

protected SystemBooleanFieldEditor()
Constructor for SystemBooleanFieldEditor


SystemBooleanFieldEditor

public SystemBooleanFieldEditor(String name,
                                String labelText,
                                int style,
                                Composite parent)
Constructor for SystemBooleanFieldEditor

Parameters:
name - the preference-store-key of the preference this field editor works on
labelText - the label text of the field editor
style - the style, either DEFAULT or SEPARATE_LABEL
parent - the parent of the field editor's control
See Also:
BooleanFieldEditor.DEFAULT, BooleanFieldEditor.SEPARATE_LABEL

SystemBooleanFieldEditor

public SystemBooleanFieldEditor(String name,
                                String labelText,
                                Composite parent)
Constructor for SystemBooleanFieldEditor, using DEFAULT for the style

Parameters:
name - the preference-store-key of the preference this field editor works on
labelText - the label text of the field editor
parent - the parent of the field editor's control

SystemBooleanFieldEditor

public SystemBooleanFieldEditor(String name,
                                ResourceBundle rb,
                                String labelKey,
                                Composite parent)
Constructor for SystemBooleanFieldEditor, using DEFAULT for the style, and specifying a resource bundle and key from which the label (_LABEL and tooltip text (_TOOLTIP are retrieved.

Parameters:
name - the preference-store-key of the preference this field editor works on
rb - the ResourceBundle we will query the label and tooltip from
labelKey - the resource bundle key from which we get the label (_LABEL and tooltip (_TOOLTIP
parent - the parent of the field editor's control
Method Detail

getChangeControl

protected Button getChangeControl(Composite parent)
Returns the change button for this field editor. This is an override of our parent's method because this is the only way for us to gain access to the checkbox so that we can apply our tooltip text.

Overrides:
getChangeControl in class BooleanFieldEditor

setToolTipText

public void setToolTipText(String tip)
Set the tooltip text


getToolTipText

public String getToolTipText()
Get the tooltip text


setHelp

public void setHelp(String helpID)
Set the help for the control


setEnabled

public void setEnabled(boolean enablement)
Method setEnabled

Parameters:
enablement - state

RSE
Release 3.3

Copyright (c) IBM Corporation and others 2000, 2011. All Rights Reserved.