iSeries Remote Systems
v6.0.1

com.ibm.etools.iseries.editor.preferences
Class AutoCloseControlFieldEditor

java.lang.Object
  extended byorg.eclipse.jface.preference.FieldEditor
      extended bycom.ibm.etools.iseries.editor.preferences.ComboBoxFieldEditor
          extended bycom.ibm.etools.iseries.editor.preferences.AutoCloseControlFieldEditor

public class AutoCloseControlFieldEditor
extends ComboBoxFieldEditor

A field editor which can be used to specify automatic closure of control blocks by a parser. Tooltip and info pop are included. The preference passed in the contructor is used to store the boolean value of whether or not auto closure is enabled. To retrieve the style, append the string .autoclosecontrolvalue to the preference string when querying the preference store.


Field Summary
static String copyright
           
 
Fields inherited from class org.eclipse.jface.preference.FieldEditor
HORIZONTAL_GAP, IS_VALID, VALUE
 
Constructor Summary
AutoCloseControlFieldEditor(String name, Composite parent)
          Constructor for AutoClosureFieldEditor.
 
Method Summary
protected  void adjustForNumColumns(int numColumns)
           
protected  void doFillIntoGrid(Composite parent, int numColumns)
          Fills this field editor's basic controls into the given parent.
protected  void doLoad()
           
protected  void doLoadDefault()
           
protected  void doStore()
           
 int getNumberOfControls()
           
 void setEnabled(boolean enablement)
          Method setEnabled
 void setEnabled(boolean enablement, boolean styleEnablement)
          Method setEnabled
 
Methods inherited from class com.ibm.etools.iseries.editor.preferences.ComboBoxFieldEditor
createModifyListener, createSelectionListener, getTextControl, getTextControl, isValid, refreshValidState, selectionChanged, setHelp, setIgnoreLoadedList, setToolTipText, setValidator
 
Methods inherited from class org.eclipse.jface.preference.FieldEditor
applyFont, checkParent, clearErrorMessage, clearMessage, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, createControl, dispose, fillIntoGrid, fireStateChanged, fireValueChanged, getFieldEditorFontName, getLabelControl, getLabelControl, getLabelText, getPreferenceName, getPreferencePage, getPreferenceStore, init, load, loadDefault, presentsDefaultValue, setButtonLayoutData, setEnabled, setFocus, setLabelText, 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
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Constructor Detail

AutoCloseControlFieldEditor

public AutoCloseControlFieldEditor(String name,
                                   Composite parent)
Constructor for AutoClosureFieldEditor.

Parameters:
name - the name of the preference to put in the store
parent - the parent control
Method Detail

adjustForNumColumns

protected void adjustForNumColumns(int numColumns)
Overrides:
adjustForNumColumns in class ComboBoxFieldEditor
See Also:
FieldEditor.adjustForNumColumns(int)

doFillIntoGrid

protected void doFillIntoGrid(Composite parent,
                              int numColumns)
Fills this field editor's basic controls into the given parent.

Overrides:
doFillIntoGrid in class ComboBoxFieldEditor
See Also:
FieldEditor.doFillIntoGrid(Composite, int)

getNumberOfControls

public int getNumberOfControls()
Overrides:
getNumberOfControls in class ComboBoxFieldEditor
See Also:
FieldEditor.getNumberOfControls()

doStore

protected void doStore()
Overrides:
doStore in class ComboBoxFieldEditor
See Also:
FieldEditor.doStore()

doLoadDefault

protected void doLoadDefault()
Overrides:
doLoadDefault in class ComboBoxFieldEditor
See Also:
FieldEditor.doLoadDefault()

doLoad

protected void doLoad()
Overrides:
doLoad in class ComboBoxFieldEditor
See Also:
FieldEditor.doLoad()

setEnabled

public void setEnabled(boolean enablement)
Method setEnabled

Parameters:
enablement - state

setEnabled

public void setEnabled(boolean enablement,
                       boolean styleEnablement)
Method setEnabled

Parameters:
enablement - state
styleEnablement - state

iSeries Remote Systems
v6.0.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.