Rational Developer for Power Systems Software
V7.6

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

java.lang.Object
  extended by SystemIntegerFieldEditor
      extended by com.ibm.etools.iseries.edit.ui.preferences.AutoIndentFieldEditor
          extended by com.ibm.etools.iseries.edit.preferences.sql.SQLAutoIndentFieldEditor
All Implemented Interfaces:
IISeriesEditorConstants, ISystemEditorConstants

public class SQLAutoIndentFieldEditor
extends AutoIndentFieldEditor

The Auto-indent field editor for SQL. Supports updating the preview area

Since:
7.0

Field Summary
static String Copyright
           
 
Fields inherited from class com.ibm.etools.iseries.edit.ui.preferences.AutoIndentFieldEditor
copyright, indentCheckBox
 
Fields inherited from interface com.ibm.etools.iseries.edit.IISeriesEditorConstants
ACTION_VERIFYPROGRAM_ID, APPLICATION_DIAGRAM, COMPILE_ERROR_MESSAGE_STYLE, FILE_TYPE_CL, FILE_TYPE_DDS, FILE_TYPE_OTHER, FILE_TYPE_RPGILE, FILE_TYPE_RPGOPM, MAX_DS_NESTING, OUTLINE_VIEW, PREF_AUTO_FORMAT, PREF_AUTO_FORMAT_T, PREF_AUTO_UPPER, PREF_AUTO_UPPER_T, PREF_BASE_PREFIX, PREF_BLANK, PREF_BLANK_SUFFIX, PREF_BLANK_T, PREF_COMMAND_POS, PREF_COMMAND_POS_T, PREF_HIGHLIGHT, PREF_HIGHLIGHT_BACKGROUND, PREF_HIGHLIGHT_BACKGROUND_T, PREF_HIGHLIGHT_T, PREF_INDENT, PREF_INDENT_T, PREF_INDENTATION, PREF_INDENTATION_T, PREF_LABEL_ABOVE_CMD, PREF_LABEL_ABOVE_CMD_T, PREF_LABEL_POS, PREF_LABEL_POS_T, PREF_LINE_LENGTH, PREF_LINE_LENGTH_T, PREF_ONE_PARM_PER_LINE, PREF_ONE_PARM_PER_LINE_T, PREF_PARSER_ASSOC, PREF_PARSER_STYLES, PREF_SIGNATURE_T, PREF_SQL_SYNTAX_CHECK, PREF_SQL_SYNTAX_CHECK_T, PREF_SYNTAX_CHECK, PREF_SYNTAX_CHECK_T, PREF_TAB, PREF_TAB_GENERAL, PREF_TAB_GENERAL_T, PREF_TAB_T, PREF_TOOLTIP_SUFFIX, PROGRAM_VERIFICATION
 
Fields inherited from interface com.ibm.etools.systems.editor.ISystemEditorConstants
COMPILE_ERROR_CLASS_NAME, ICON_EDITOR_COMPILE, ICON_EDITOR_COMPILE_D, ICON_EDITOR_COMPILE_D_ID, ICON_EDITOR_COMPILE_D_ROOT, ICON_EDITOR_COMPILE_ID, ICON_EDITOR_COMPILE_ROOT, ICON_EDITOR_NEXT_ERROR, ICON_EDITOR_NEXT_ERROR_D, ICON_EDITOR_NEXT_ERROR_D_ID, ICON_EDITOR_NEXT_ERROR_D_ROOT, ICON_EDITOR_NEXT_ERROR_ID, ICON_EDITOR_NEXT_ERROR_ROOT, ICON_EDITOR_PREVIOUS_ERROR, ICON_EDITOR_PREVIOUS_ERROR_D, ICON_EDITOR_PREVIOUS_ERROR_D_ID, ICON_EDITOR_PREVIOUS_ERROR_D_ROOT, ICON_EDITOR_PREVIOUS_ERROR_ID, ICON_EDITOR_PREVIOUS_ERROR_ROOT, ICON_EXT, ICON_RELATIVE_PATH_DLCL16, ICON_RELATIVE_PATH_ELCL16, ICON_RELATIVE_PATH_FULL, ICON_SUFFIX, PREFIX, SYNTAX_ERROR_CLASS_NAME
 
Constructor Summary
SQLAutoIndentFieldEditor(String name, Composite parent)
          The constructor for this class
 
Method Summary
 void setPreviewFieldEditor(LpexPreviewFieldEditor preview)
          Sets the preview area for this field editor.
 void setValidRange(int min, int max)
          Sets the range of valid values for this field.
 void store()
          Override the default so that we always store the value.
 
Methods inherited from class com.ibm.etools.iseries.edit.ui.preferences.AutoIndentFieldEditor
adjustForNumColumns, doFillIntoGrid, doLoad, doLoadDefault, doStore, getNumberOfControls, setEnabled, setHelp
 
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

SQLAutoIndentFieldEditor

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

Parameters:
name - the name of the preference
parent - the parent composite for the field editor
Method Detail

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

setValidRange

public void setValidRange(int min,
                          int max)
Sets the range of valid values for this field.

Parameters:
min - the minimum allowed value (inclusive)
max - the maximum allowed value (inclusive)

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.