Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.preferences.sql
Class SQLAutoFormattingFieldEditor

java.lang.Object
  extended by FieldEditor
      extended by com.ibm.etools.iseries.edit.preferences.sql.SQLAutoFormattingFieldEditor

public class SQLAutoFormattingFieldEditor
extends FieldEditor

This class is used to manage the SQL formatting preferenes

Since:
7.0

Field Summary
static int AFTER_IDX
           
static String AUTO_FORMATTING_PREF_BASE_SUFFIX
           
static String AUTO_FORMATTING_PREF_COMMENTS_SUFFIX
           
static String AUTO_FORMATTING_PREF_ONANDOR_SUFFIX
           
static String AUTO_FORMATTING_PREF_ONCASE_SUFFIX
           
static String AUTO_FORMATTING_PREF_ONCOMMA_SUFFIX
           
static int BEFORE_IDX
           
static String Copyright
           
static int EOL_IDX
           
static int IGNORE_IDX
           
static int MOVE_TO_BOTTOM_IDX
           
static int MOVE_TO_TOP_IDX
           
 
Constructor Summary
SQLAutoFormattingFieldEditor(String name, Composite parent)
          The constructor for this class
 
Method Summary
protected  void adjustForNumColumns(int numColumns)
           
protected  void doFillIntoGrid(Composite parent, int numColumns)
           
protected  void doLoad()
           
protected  void doLoadDefault()
           
protected  void doStore()
           
 int getNumberOfControls()
           
 void setPreviewFieldEditor(LpexPreviewFieldEditor preview)
          Sets the preview area for this field editor.
 void store()
          Override the default so that we always store the value.
 void widgetDefaultSelected(SelectionEvent e)
           
 void widgetSelected(SelectionEvent e)
           
 
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

AUTO_FORMATTING_PREF_BASE_SUFFIX

public static final String AUTO_FORMATTING_PREF_BASE_SUFFIX
See Also:
Constant Field Values

AUTO_FORMATTING_PREF_ONCOMMA_SUFFIX

public static final String AUTO_FORMATTING_PREF_ONCOMMA_SUFFIX
See Also:
Constant Field Values

AUTO_FORMATTING_PREF_ONANDOR_SUFFIX

public static final String AUTO_FORMATTING_PREF_ONANDOR_SUFFIX
See Also:
Constant Field Values

AUTO_FORMATTING_PREF_ONCASE_SUFFIX

public static final String AUTO_FORMATTING_PREF_ONCASE_SUFFIX
See Also:
Constant Field Values

AUTO_FORMATTING_PREF_COMMENTS_SUFFIX

public static final String AUTO_FORMATTING_PREF_COMMENTS_SUFFIX
See Also:
Constant Field Values

AFTER_IDX

public static final int AFTER_IDX
See Also:
Constant Field Values

BEFORE_IDX

public static final int BEFORE_IDX
See Also:
Constant Field Values

EOL_IDX

public static final int EOL_IDX
See Also:
Constant Field Values

MOVE_TO_TOP_IDX

public static final int MOVE_TO_TOP_IDX
See Also:
Constant Field Values

MOVE_TO_BOTTOM_IDX

public static final int MOVE_TO_BOTTOM_IDX
See Also:
Constant Field Values

IGNORE_IDX

public static final int IGNORE_IDX
See Also:
Constant Field Values
Constructor Detail

SQLAutoFormattingFieldEditor

public SQLAutoFormattingFieldEditor(String name,
                                    Composite parent)
The constructor for this class

Parameters:
name - The preference key name
parent - The parent composite
Method Detail

adjustForNumColumns

protected void adjustForNumColumns(int numColumns)

doFillIntoGrid

protected void doFillIntoGrid(Composite parent,
                              int numColumns)

doLoad

protected void doLoad()

doLoadDefault

protected void doLoadDefault()

doStore

protected void doStore()

getNumberOfControls

public int getNumberOfControls()

widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent e)

widgetSelected

public void widgetSelected(SelectionEvent e)

setPreviewFieldEditor

public void setPreviewFieldEditor(LpexPreviewFieldEditor preview)
Sets the preview area for this field editor. When something is updated on this field editor, the preview area will be told to update itself

Parameters:
_preview - the preview field editor

store

public void store()
Override the default so that we always store the value. This handles the case when the reset defaults button is pushed

See Also:
FieldEditor

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 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.