Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.preferences
Class ISeriesTableViewPreferencePage

java.lang.Object
  extended by FieldEditorPreferencePage
      extended by com.ibm.etools.iseries.rse.ui.preferences.ISeriesTableViewPreferencePage
All Implemented Interfaces:
IObjectTableConstants

public class ISeriesTableViewPreferencePage
extends FieldEditorPreferencePage
implements IObjectTableConstants

iSeries Preference page for options related to the Table view. Allow user to specify

whether to restore the table view in next session

the column order in the table view. The order is stored as a string 01234 which is translated into word array to be displayed in the list


Field Summary
static String copyright
           
 
Fields inherited from interface com.ibm.etools.iseries.rse.ui.view.objtable.IObjectTableConstants
ALL, ATTRIB_DATABASE, ATTRIB_DTA, ATTRIB_SRC, BASIC_COLUMN_LAYOUTS, BASIC_COLUMN_MAPPINGS, BASIC_COLUMN_WIDTHS, BASIC_DATA_COLUMNS, BLANK, COLUMN_ATTRIBUTE, COLUMN_ATTRIBUTE_CHAR, COLUMN_CREATEDATE, COLUMN_CREATEDATE_CHAR, COLUMN_MODIFIEDDATE, COLUMN_MODIFIEDDATE_CHAR, COLUMN_NAME, COLUMN_NAME_CHAR, COLUMN_NOT_DISPLAYED, COLUMN_PROPERTIES, COLUMN_SIZE, COLUMN_SIZE_CHAR, COLUMN_TEXT, COLUMN_TEXT_CHAR, COLUMN_TYPE, COLUMN_TYPE_CHAR, Copyright, EMPTY_COLUMN_LAYOUTS, EMPTY_COLUMN_MAPPINGS, EMPTY_COLUMN_WIDTHS, EXPORT_ACTION_COLUMN_WIDTHS, EXPORT_ACTION_HEADER_UNDERLINES, EXPORT_ACTION_SPACE_HOLDERS, INDEX_SUBSET_MBR_NAME_FILTER, INDEX_SUBSET_MBR_TEXT_FILTER, INDEX_SUBSET_MBR_TYPE_FILTER, INDEX_SUBSET_OBJ_ATTRIB_FILTER, INDEX_SUBSET_OBJ_FROM_SIZE_FILTER, INDEX_SUBSET_OBJ_NAME_FILTER, INDEX_SUBSET_OBJ_TEXT_FILTER, INDEX_SUBSET_OBJ_TO_SIZE_FILTER, INDEX_SUBSET_OBJ_TYPE_FILTER, MAX_NUMBER_MBR_ADD, MAX_NUMBER_OBJ_ADD, MBR_EXTRA_COLUMN_LAYOUTS, MBR_EXTRA_COLUMN_MAPPINGS, MBR_EXTRA_COLUMN_WIDTHS, NFS_ISERIES_TABLE_VIEW, NUMBER_OF_COLUMNS, OBJ_EXTRA_COLUMN_LAYOUTS, OBJ_EXTRA_COLUMN_MAPPINGS, OBJ_EXTRA_COLUMN_WIDTHS, PROP_ATTRIB, PROP_CREATED, PROP_MODIFIED, PROP_NAME, PROP_SIZE, PROP_TEXT, PROP_TYPE, SUBSET_ASTERISK_ALL, SUBSET_ASTERISK_BACK, SUBSET_ASTERISK_FRONT, SUBSET_ASTERISK_FRONT_AND_BACK, SUBSET_ASTERISK_MIDDLE, SUBSET_EXACT, SUBSET_INVALID, TABLE_VIEW_EMPTY, TABLE_VIEW_FILTER_MBR, TABLE_VIEW_FILTER_OBJ, TABLE_VIEW_FORMAT_ALL_MBR, TABLE_VIEW_FORMAT_ALL_OBJ, TABLE_VIEW_FORMAT_CUSTOMIZED_MBR, TABLE_VIEW_FORMAT_CUSTOMIZED_OBJ, TABLE_VIEW_FORMAT_DEFAULT, TABLE_VIEW_FORMAT_EMPTY, TABLE_VIEW_GO_BACKWARD, TABLE_VIEW_GO_DOWN, TABLE_VIEW_GO_FORWARD, TABLE_VIEW_GO_UP, TABLE_VIEW_MBR, TABLE_VIEW_OBJ, TABLE_VIEW_POSITION_TO_BOTTOM, TABLE_VIEW_POSITION_TO_TOP, TABLE_VIEW_SHOW_COLUMN_ALL, TABLE_VIEW_SHOW_COLUMN_CUSTOMIZED, TABLE_VIEW_SHOW_COLUMN_DEFAULT, TABLE_VIEW_SHOW_COLUMN_UNKNOWN, TABLE_VIEW_WORK_WITH_LIB, TABLE_VIEW_WORK_WITH_MBR, TABLE_VIEW_WORK_WITH_OBJ, TAG_TABLE_VIEW_CONNECTION, TAG_TABLE_VIEW_ELEMENT, TAG_TABLE_VIEW_FILTER_STR, TAG_TABLE_VIEW_SUBSET, TAG_TABLE_VIEW_TYPE, TAG_TABLE_VIEW_WORK_WITH, TAG_TABLE_VIEW_WW_ACTION
 
Constructor Summary
ISeriesTableViewPreferencePage()
          Constructor
 
Method Summary
protected  Label addFillerLine(Composite parent, int nbrColumns)
          Add a spacer line
protected  Label addSeparatorLine(Composite parent, int nbrColumns)
          Add a separator line.
protected  void adjustGridLayout()
          Adjust the layout of the field editors so that they are properly aligned.
protected  boolean canAdd()
          Returns whether selection can be moved up.
protected  boolean canMoveDown()
          Returns whether selection can be moved down.
protected  boolean canMoveUp()
          Returns whether selection can be moved up.
protected  boolean canRemove()
          Returns whether selection can be moved up.
 void createControl(Composite parent)
          Configure the overrall composite.
protected  void createFieldEditors()
          Create the individual editors for each preference.
protected  void doAdd()
          Peform add function on list.
protected  void doMoveDown()
          Peform move down function on list.
protected  void doMoveUp()
          Perform move up function on list.
protected  void doRemove()
          Peform move down function on list.
static String getMemberCustomizedlOrderPreference()
          Return member customized column order string preference
static String getNumberColumnArray(String[] stringArray)
          Convert the order list in word string array format to number string format
static String getObjectCustomizedOrderPreference()
          Return object customized column order string preference
static String getOrderStatePreference()
          Return the view type used last time in string preference
static boolean getRestoreStatePreference()
          Return the restore table view boolean preference
static String[] getStringColumnArray(String numberArray)
          Convert the order list in number string format to word string array format
static boolean getUseCmdLinePreference()
          Return the use command line boolean preference
 void init(IWorkbench workbench)
          Required method from parent
static void initDefaults()
          Initialize our preference store with our defaults.
protected  void performDefaults()
          Override of parent so we can save the preference store to disk.
 boolean performOk()
          User has pressed Apply Override of parent so we can do error checking and stop the Apply action if errors are pending.
protected  void processOrderListSelected()
          Process column order list selection.
 
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

ISeriesTableViewPreferencePage

public ISeriesTableViewPreferencePage()
Constructor

Method Detail

createControl

public void createControl(Composite parent)
Configure the overrall composite. We intercept to set the help.


createFieldEditors

protected void createFieldEditors()
Create the individual editors for each preference.


addSeparatorLine

protected Label addSeparatorLine(Composite parent,
                                 int nbrColumns)
Add a separator line. This is a physically visible line.


addFillerLine

protected Label addFillerLine(Composite parent,
                              int nbrColumns)
Add a spacer line


processOrderListSelected

protected void processOrderListSelected()
Process column order list selection.


canRemove

protected boolean canRemove()
Returns whether selection can be moved up.


canAdd

protected boolean canAdd()
Returns whether selection can be moved up.


canMoveUp

protected boolean canMoveUp()
Returns whether selection can be moved up.


doMoveUp

protected void doMoveUp()
Perform move up function on list.


canMoveDown

protected boolean canMoveDown()
Returns whether selection can be moved down.


doMoveDown

protected void doMoveDown()
Peform move down function on list.


doRemove

protected void doRemove()
Peform move down function on list.


doAdd

protected void doAdd()
Peform add function on list.


adjustGridLayout

protected void adjustGridLayout()
Adjust the layout of the field editors so that they are properly aligned. Intercept of parent so we can adjust our non-editor widgets


init

public void init(IWorkbench workbench)
Required method from parent


performOk

public boolean performOk()
User has pressed Apply Override of parent so we can do error checking and stop the Apply action if errors are pending.


performDefaults

protected void performDefaults()
Override of parent so we can save the preference store to disk.


initDefaults

public static void initDefaults()
Initialize our preference store with our defaults. This is called in ISeriesSystemPlugin.initializeDefaultPreferences, which in turn is triggered by our ctor call to getPreferenceStore() in the ISeriesSystemPlugin.


getMemberCustomizedlOrderPreference

public static String getMemberCustomizedlOrderPreference()
Return member customized column order string preference


getObjectCustomizedOrderPreference

public static String getObjectCustomizedOrderPreference()
Return object customized column order string preference


getOrderStatePreference

public static String getOrderStatePreference()
Return the view type used last time in string preference


getRestoreStatePreference

public static boolean getRestoreStatePreference()
Return the restore table view boolean preference


getUseCmdLinePreference

public static boolean getUseCmdLinePreference()
Return the use command line boolean preference


getStringColumnArray

public static String[] getStringColumnArray(String numberArray)
Convert the order list in number string format to word string array format

Parameters:
numberArray -
Returns:

getNumberColumnArray

public static String getNumberColumnArray(String[] stringArray)
Convert the order list in word string array format to number string format

Parameters:
stringArray -
Returns:
string - the order in number format

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.