Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.dialogs.tableview
Class ISeriesAbstractTableViewSubsetDialog

java.lang.Object
  extended by SystemPromptDialog
      extended by com.ibm.etools.iseries.rse.ui.dialogs.tableview.ISeriesAbstractTableViewSubsetDialog
All Implemented Interfaces:
IObjectTableConstants
Direct Known Subclasses:
ISeriesMbrTableViewSubsetDialog, ObjTableSubsetDialog

public abstract class ISeriesAbstractTableViewSubsetDialog
extends SystemPromptDialog
implements IObjectTableConstants

Dialog for subsetting the table view


Field Summary
protected  boolean bGenenericQuotedName
           
protected  boolean bQuotedName
           
protected  Combo cbAttribute
           
protected  Combo cbName
           
protected  Combo cbText
           
protected  Combo cbType
           
protected  Control controlInError
           
static String copyright
           
protected  SystemMessage errMsg
           
protected  SystemMessage errorMessage
           
protected  int iGenericSubsetType
           
protected  int iNameFilterLen
           
protected  boolean initialized
           
protected  Object inputElement
           
protected  int iObjAttribFilterLen
           
protected  int iObjAttribSubsetType
           
protected  ISeriesAbstractTableViewFilter iseriesTableViewFilter
           
protected  int iSubsetType
           
protected  ValidatorIBMiObject nameValidator
           
protected  ValidatorQSYSObjectAttr objTypeAttribValidator
           
protected  ValidatorQSYSObjectType objTypeValidator
           
protected  String sAttributeFilter
           
protected  String sGenericFilter
           
protected  String sGenericFilterBack
           
protected  String sGenericFilterFront
           
protected  Shell shell
           
protected  String sLocalNameFilter
           
protected  String sLocalNameFilterBack
           
protected  String sLocalNameFilterFront
           
protected  String sLocalObjAttribFilter
           
protected  String sLocalObjAttribFilterBack
           
protected  String sLocalObjAttribFilterFront
           
protected  String sNameFilter
           
protected  String sTextFilter
           
protected  String sTypeFilter
           
 
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
ISeriesAbstractTableViewSubsetDialog(Shell shell)
          Constructor
ISeriesAbstractTableViewSubsetDialog(Shell shell, String title)
          Constructor with a title
 
Method Summary
protected abstract  Control createInner(Composite parent)
           
protected  ISystemMessageLine createMessageLine(Composite c)
          Create message line.
protected  Control getInitialFocusControl()
           
protected  void initializeInput()
           
 boolean isPageComplete()
          This method can be called by the dialog or wizard page host, to decide whether to enable or disable the next, final or ok buttons.
protected abstract  boolean processOK()
          Called when user presses OK button.
 void setFilter(ISeriesAbstractTableViewFilter filter)
          Set the filter used by the dialog
protected  void setGenericSubsetType(String sOriginalFilter, boolean bAllowedQuotedName)
          Valdiate s filter string and if valid, identify the generic type and whether if it is quoted input - string filter name input - whether quoted name is allowed output - int generic subset type output - boolean quoted name output - string local name to be used for subsetting output - string the front part of the filter if * is used output - string the back part of the filter if * is used
 void setPageComplete()
          Inform caller of page-complete status of this form
protected abstract  void updateFilterFromUI()
          Updates the given filter from the UI state.
protected abstract  void updateUIFromFilter()
          Updates the UI state from the given filter.
protected  SystemMessage validateNameInput()
          This hook method is called whenever the text changes in the input field.
protected  SystemMessage validateObjAttribInput()
           
protected  SystemMessage validateObjTypeInput()
           
protected  SystemMessage validateTextInput()
           
protected  boolean verify()
          Verifies all input.
 
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

errorMessage

protected SystemMessage errorMessage

initialized

protected boolean initialized

inputElement

protected Object inputElement

cbName

protected Combo cbName

cbType

protected Combo cbType

cbAttribute

protected Combo cbAttribute

cbText

protected Combo cbText

iseriesTableViewFilter

protected ISeriesAbstractTableViewFilter iseriesTableViewFilter

sAttributeFilter

protected String sAttributeFilter

sNameFilter

protected String sNameFilter

sTypeFilter

protected String sTypeFilter

sTextFilter

protected String sTextFilter

iSubsetType

protected int iSubsetType

iNameFilterLen

protected int iNameFilterLen

bQuotedName

protected boolean bQuotedName

sLocalNameFilter

protected String sLocalNameFilter

sLocalNameFilterFront

protected String sLocalNameFilterFront

sLocalNameFilterBack

protected String sLocalNameFilterBack

iObjAttribSubsetType

protected int iObjAttribSubsetType

iObjAttribFilterLen

protected int iObjAttribFilterLen

sLocalObjAttribFilter

protected String sLocalObjAttribFilter

sLocalObjAttribFilterFront

protected String sLocalObjAttribFilterFront

sLocalObjAttribFilterBack

protected String sLocalObjAttribFilterBack

shell

protected Shell shell

errMsg

protected SystemMessage errMsg

controlInError

protected Control controlInError

sGenericFilter

protected String sGenericFilter

sGenericFilterFront

protected String sGenericFilterFront

sGenericFilterBack

protected String sGenericFilterBack

iGenericSubsetType

protected int iGenericSubsetType

bGenenericQuotedName

protected boolean bGenenericQuotedName

nameValidator

protected ValidatorIBMiObject nameValidator

objTypeAttribValidator

protected ValidatorQSYSObjectAttr objTypeAttribValidator

objTypeValidator

protected ValidatorQSYSObjectType objTypeValidator
Constructor Detail

ISeriesAbstractTableViewSubsetDialog

public ISeriesAbstractTableViewSubsetDialog(Shell shell)
Constructor


ISeriesAbstractTableViewSubsetDialog

public ISeriesAbstractTableViewSubsetDialog(Shell shell,
                                            String title)
Constructor with a title

Method Detail

createMessageLine

protected ISystemMessageLine createMessageLine(Composite c)
Create message line. Intercept so we can set msg line of form.


getInitialFocusControl

protected Control getInitialFocusControl()
See Also:
SystemPromptDialog#getInitialFocusControl()

createInner

protected abstract Control createInner(Composite parent)
See Also:
SystemPromptDialog#createInner(Composite)

initializeInput

protected void initializeInput()

processOK

protected abstract boolean processOK()
Called when user presses OK button. Return true to close dialog. Return false to not close dialog.


verify

protected boolean verify()
Verifies all input.

Returns:
true if there are no errors in the user input

validateNameInput

protected SystemMessage validateNameInput()
This hook method is called whenever the text changes in the input field. The default implementation delegates the request to an ISystemValidator object. If the ISystemValidator reports an error the error message is displayed in the Dialog's message line.

See Also:
setNameValidator(ISystemValidator)

validateObjAttribInput

protected SystemMessage validateObjAttribInput()

validateObjTypeInput

protected SystemMessage validateObjTypeInput()

validateTextInput

protected SystemMessage validateTextInput()

isPageComplete

public boolean isPageComplete()
This method can be called by the dialog or wizard page host, to decide whether to enable or disable the next, final or ok buttons. It returns true if the minimal information is available and is correct.


setPageComplete

public void setPageComplete()
Inform caller of page-complete status of this form


setFilter

public void setFilter(ISeriesAbstractTableViewFilter filter)
Set the filter used by the dialog


updateFilterFromUI

protected abstract void updateFilterFromUI()
Updates the given filter from the UI state.


updateUIFromFilter

protected abstract void updateUIFromFilter()
Updates the UI state from the given filter.


setGenericSubsetType

protected void setGenericSubsetType(String sOriginalFilter,
                                    boolean bAllowedQuotedName)
Valdiate s filter string and if valid, identify the generic type and whether if it is quoted input - string filter name input - whether quoted name is allowed output - int generic subset type output - boolean quoted name output - string local name to be used for subsetting output - string the front part of the filter if * is used output - string the back part of the filter if * is used


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.