Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui
Class QSYSFilterStringEditPaneMembers

java.lang.Object
  extended by SystemFilterStringEditPane
      extended by com.ibm.etools.iseries.rse.ui.QSYSFilterStringBaseEditPane
          extended by com.ibm.etools.iseries.rse.ui.QSYSFilterStringEditPaneMembers
All Implemented Interfaces:
IQSYSLibraryPromptListener, IQSYSMemberPromptListener, IQSYSObjectPromptListener

public class QSYSFilterStringEditPaneMembers
extends QSYSFilterStringBaseEditPane
implements IQSYSMemberPromptListener

This is an edit pane for prompting for a Member filter string. It is used in numerous places, including the member filter wizard.


Field Summary
static String copyright
           
protected  Button dtaCB
           
protected  QSYSMemberPrompt entryLibFileMbr
           
protected  Button srcCB
           
 
Fields inherited from class com.ibm.etools.iseries.rse.ui.QSYSFilterStringBaseEditPane
calledFromVerify, callerDialog, callerWizard, conn400Combo, defaultConn, wantConnectionPrompt
 
Constructor Summary
QSYSFilterStringEditPaneMembers(Shell shell)
          Constructor.
QSYSFilterStringEditPaneMembers(Shell shell, ISystemWizard wizard)
          Constructor when usage is for a wizard.
QSYSFilterStringEditPaneMembers(Shell shell, SystemPromptDialog dialog)
          Constructor when usage is for a dialog.
QSYSFilterStringEditPaneMembers(Shell shell, SystemPromptDialog dialog, boolean showMoreTypesButton)
          Constructor when invoked from a dialog and you want to state explicitly whether or not to see the "More Types>>" button.
 
Method Summary
protected  boolean areISeriesFieldsComplete()
          Called by immediate parent.
protected  void connectionChanged(IHost connection)
          SubClasses that need to know when the connection changes (in those cases where there is a conn prompt at the top) should override this method.
 Control createISeriesContents(Composite parent)
          Method createContents.
protected  void doInitializeISeriesFields()
          Called by immediate parent.
protected  void doResetISeriesFields()
          Must be overridden.
 String getFilterString()
          Get the filter string in its current editPane.
 Control getInitialFocusControl()
          Return the control to recieve initial focus.
 void modifyText(ModifyEvent event)
          User has modified text in the type combo
 void objectNameChanged(SystemMessage errorMessage)
          The user has entered or selected text in the object entry field and it has been validated by the ISeriesMemberPrompt.
protected  void setIgnoreChanges(boolean ignoreChanges)
          Turn on ignore changes mode.
 void setShowMoreTypesButton(boolean show)
          Explicitly state that the More Types>> button is not to be shown
protected  Control verifyISeries()
          Called by immediate parent.
 void widgetSelected(SelectionEvent event)
          User has selected something
 
Methods inherited from class com.ibm.etools.iseries.rse.ui.QSYSFilterStringBaseEditPane
areFieldsComplete, createContents, doInitializeFields, getSystemConnection, libraryNameChanged, memberNameChanged, processTest, resetFields, setCallerDialog, setCallerWizard, setChangeFilterMode, setShowConnectionPrompt, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.etools.iseries.rse.ui.widgets.IQSYSMemberPromptListener
memberNameChanged
 
Methods inherited from interface com.ibm.etools.iseries.rse.ui.widgets.IQSYSLibraryPromptListener
libraryNameChanged
 

Field Detail

copyright

public static String copyright

entryLibFileMbr

protected QSYSMemberPrompt entryLibFileMbr

srcCB

protected Button srcCB

dtaCB

protected Button dtaCB
Constructor Detail

QSYSFilterStringEditPaneMembers

public QSYSFilterStringEditPaneMembers(Shell shell)
Constructor.

Parameters:
shell -

QSYSFilterStringEditPaneMembers

public QSYSFilterStringEditPaneMembers(Shell shell,
                                       ISystemWizard wizard)
Constructor when usage is for a wizard.

Parameters:
shell -
wizard -

QSYSFilterStringEditPaneMembers

public QSYSFilterStringEditPaneMembers(Shell shell,
                                       SystemPromptDialog dialog)
Constructor when usage is for a dialog.

Parameters:
shell -
dialog -

QSYSFilterStringEditPaneMembers

public QSYSFilterStringEditPaneMembers(Shell shell,
                                       SystemPromptDialog dialog,
                                       boolean showMoreTypesButton)
Constructor when invoked from a dialog and you want to state explicitly whether or not to see the "More Types>>" button.

Parameters:
shell -
dialog - the hosting dialog
Method Detail

setShowMoreTypesButton

public void setShowMoreTypesButton(boolean show)
Explicitly state that the More Types>> button is not to be shown


createISeriesContents

public Control createISeriesContents(Composite parent)
Method createContents.

Overrides:
createISeriesContents in class QSYSFilterStringBaseEditPane
Parameters:
parent -
Returns:
Control

setIgnoreChanges

protected void setIgnoreChanges(boolean ignoreChanges)
Turn on ignore changes mode. Subclasses typically can just query the inherited field ignoreChanges, unless they need to set the ignoreChanges mode in their own composite widgets, in which case they can override and intercept this.


getInitialFocusControl

public Control getInitialFocusControl()
Return the control to recieve initial focus. We return the library combo.


doInitializeISeriesFields

protected void doInitializeISeriesFields()
Called by immediate parent. Initialize the input fields

Overrides:
doInitializeISeriesFields in class QSYSFilterStringBaseEditPane

doResetISeriesFields

protected void doResetISeriesFields()
Must be overridden. This is called in the change filter dialog when the user selects "new", or selects another string. You must override this if you override createContents. Be sure to test if the contents have even been created yet!

Overrides:
doResetISeriesFields in class QSYSFilterStringBaseEditPane

areISeriesFieldsComplete

protected boolean areISeriesFieldsComplete()
Called by immediate parent. Is the data in the fields complete? Don't do error checking here.

Overrides:
areISeriesFieldsComplete in class QSYSFilterStringBaseEditPane

verifyISeries

protected Control verifyISeries()
Called by immediate parent. If you detect an error, you must set errorMessage (it is inited to null for you), and return the control in error.

Overrides:
verifyISeries in class QSYSFilterStringBaseEditPane

getFilterString

public String getFilterString()
Get the filter string in its current editPane. This should be overridden if createContents is overridden.


modifyText

public void modifyText(ModifyEvent event)
User has modified text in the type combo


widgetSelected

public void widgetSelected(SelectionEvent event)
User has selected something

Overrides:
widgetSelected in class QSYSFilterStringBaseEditPane

objectNameChanged

public void objectNameChanged(SystemMessage errorMessage)
The user has entered or selected text in the object entry field and it has been validated by the ISeriesMemberPrompt.

Specified by:
objectNameChanged in interface IQSYSObjectPromptListener
Overrides:
objectNameChanged in class QSYSFilterStringBaseEditPane
Parameters:
errorMessage - Will be null if the input is valid, or a translated msg if not

connectionChanged

protected void connectionChanged(IHost connection)
SubClasses that need to know when the connection changes (in those cases where there is a conn prompt at the top) should override this method.

Overrides:
connectionChanged in class QSYSFilterStringBaseEditPane

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.