Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

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.0

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire