Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.ui.preferences
Class TabSettingFieldEditor

java.lang.Object
  extended by FieldEditor
      extended by com.ibm.etools.iseries.edit.ui.preferences.TabSettingFieldEditor
All Implemented Interfaces:
IISeriesEditorConstants, ISystemEditorConstants

public class TabSettingFieldEditor
extends FieldEditor
implements IISeriesEditorConstants


Field Summary
static String copyright
           
static String defaultLabelTextSetting
          the default label to use for the check box for this field editor
static String defaultLabelTooltip
          the default tooltip for the check box for this field editor
static String defaultRulerSetting
          A default commonly used ruler
static String defaultTabSetting
          A default commonly used tab setting
static int USE_COMBO_BOX
          displays the preference using a combo box to select the tab setting
static int USE_DEFAULT
          displays each tab setting individually
 
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
TabSettingFieldEditor(String name, String[][] tabList, Composite parent)
          Method TabSettingFieldEditor.
TabSettingFieldEditor(String name, String labelText, String[][] tabList, Composite parent, int style)
          Method TabSettingFieldEditor.
 
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()
           
 boolean isValid()
           
protected  void refreshValidState()
           
 
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

USE_COMBO_BOX

public static int USE_COMBO_BOX
displays the preference using a combo box to select the tab setting


USE_DEFAULT

public static int USE_DEFAULT
displays each tab setting individually


defaultLabelTooltip

public static String defaultLabelTooltip
the default tooltip for the check box for this field editor


defaultLabelTextSetting

public static String defaultLabelTextSetting
the default label to use for the check box for this field editor


defaultTabSetting

public static String defaultTabSetting
A default commonly used tab setting


defaultRulerSetting

public static String defaultRulerSetting
A default commonly used ruler

Constructor Detail

TabSettingFieldEditor

public TabSettingFieldEditor(String name,
                             String[][] tabList,
                             Composite parent)
Method TabSettingFieldEditor.

Parameters:
name - The name of the preference which indicated (true or false) that user defined tabs should be used by a parser
tabList - an array of tab settings. Each item in the array is itself an array containing 1) the preference name for the tab to store/retrieve from the preference store 2) the name of the tab setting (or ruler) to display 3) the ruler to display 4) the tooltip text (optional) 5) the help id (optional and can only be specified in conjunction with tooltip text)
parent - the parent control for this preference

TabSettingFieldEditor

public TabSettingFieldEditor(String name,
                             String labelText,
                             String[][] tabList,
                             Composite parent,
                             int style)
Method TabSettingFieldEditor.

Parameters:
name - The name of the preference which indicated (true or false) that user defined tabs should be used by a parser
labelText - the text to override the default label for the check box for this preference
tabList - an array of tab settings. Each item in the array is itself an array containing 1) the preference name for the tab to store/retrieve from the preference store 2) the name of the tab setting (or ruler) to display 3) the ruler to display 4) the tooltip text (optional) 5) the help id (optional and can only be specified in conjunction with tooltip text)
parent - the parent control for this preference
style - the style to use (either USE_COMBO_BOX or USE_DEFAULT)
Method Detail

adjustForNumColumns

protected void adjustForNumColumns(int numColumns)
See Also:
FieldEditor

doFillIntoGrid

protected void doFillIntoGrid(Composite parent,
                              int numColumns)
See Also:
FieldEditor

doLoad

protected void doLoad()
See Also:
FieldEditor

doLoadDefault

protected void doLoadDefault()
See Also:
FieldEditor

doStore

protected void doStore()
See Also:
FieldEditor

isValid

public boolean isValid()
See Also:
FieldEditor

getNumberOfControls

public int getNumberOfControls()
See Also:
FieldEditor

refreshValidState

protected void refreshValidState()
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.