LPEX
4.4.0

com.ibm.lpex.alef.preferences
Class SourceEncodingPreferencePage

java.lang.Object
  extended by FieldEditorPreferencePage
      extended by com.ibm.lpex.alef.preferences.LpexFieldEditorPreferencePage
          extended by com.ibm.lpex.alef.preferences.SourceEncodingPreferencePage

public class SourceEncodingPreferencePage
extends LpexFieldEditorPreferencePage

Source encoding preference page for an LPEX document. It handles the emulation source encoding setting for the document.


Field Summary
protected  com.ibm.lpex.alef.preferences.LpexComboEditor _sourceEncodingList
          The combo list of source encodings.
 
Constructor Summary
SourceEncodingPreferencePage(LpexView lpexView)
          Constructor.
 
Method Summary
protected  Control createContents(Composite parent)
          Creates and returns the SWT control for the customized body of this preference page.
protected  void createFieldEditors()
          Creates this preference page's field editors.
protected  void performDefaults()
          "Restore Defaults" button pressed.
 boolean performOk()
          "OK" / "Apply" button pressed.
protected  void performReset()
          "Reset" button pressed.
 
Methods inherited from class com.ibm.lpex.alef.preferences.LpexFieldEditorPreferencePage
contributeButtons, fieldEditorsCreated, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_sourceEncodingList

protected com.ibm.lpex.alef.preferences.LpexComboEditor _sourceEncodingList
The combo list of source encodings.

Constructor Detail

SourceEncodingPreferencePage

public SourceEncodingPreferencePage(LpexView lpexView)
Constructor.

Parameters:
lpexView - a view of the document
Method Detail

createContents

protected Control createContents(Composite parent)
Creates and returns the SWT control for the customized body of this preference page. Overridden in order to set the context help.


createFieldEditors

protected void createFieldEditors()
Creates this preference page's field editors.

Method fieldEditorsCreated() is called after the field of this preference page is created and set to its initial value. A subclass may then disable this field:

  protected void fieldEditorsCreated() {
   _sourceEncodingList.setEnabled(false);
  }


performOk

public boolean performOk()
"OK" / "Apply" button pressed. Commits any new updated value, and ensures that the change is reflected correctly in all the LPEX screens of the document.


performDefaults

protected void performDefaults()
"Restore Defaults" button pressed. Sets the value and the dialog field to the default/install setting, does a checkState() to recalculate page's error state.


performReset

protected void performReset()
"Reset" button pressed. Restores the initial preference-page setting.

Overrides:
performReset in class LpexFieldEditorPreferencePage
See Also:
LpexFieldEditorPreferencePage.contributeButtons(Composite)

LPEX
4.4.0

Copyright � 2016 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.