Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.dialogs
Class QSYSOpenMemberDialog

java.lang.Object
  extended by SystemPromptDialog
      extended by com.ibm.etools.iseries.rse.ui.dialogs.QSYSOpenMemberDialog
All Implemented Interfaces:
IQSYSLibraryPromptListener, IQSYSMemberPromptListener, IQSYSObjectPromptListener

public class QSYSOpenMemberDialog
extends SystemPromptDialog
implements IQSYSMemberPromptListener

A dialog prompting for a member to open in the JLpex editor.


Field Summary
static String Copyright
           
 
Fields inherited from interface com.ibm.etools.iseries.rse.ui.widgets.IQSYSMemberPromptListener
copyright
 
Constructor Summary
QSYSOpenMemberDialog(Shell shell)
          Constructor for JLpexOpen.
 
Method Summary
protected  Control createInner(Composite parent)
           
protected  String getFileName()
          Return the user-entered file
protected  Control getInitialFocusControl()
           
 IBMiConnection getISeriesConnection()
          Return the user-entered connection
 IQSYSMember getISeriesMember()
          Return the user-selected member as an ISeriesMember object.
protected  String getLibraryName()
          Return the user-entered library
protected  String getMemberName()
          Return the user-entered member
 boolean getOpenForEdit()
          Return true if open for edit selected, false if open for browse selected
protected  boolean isPageComplete()
          Internal method to decide if OK button should be enabled.
 void libraryNameChanged(SystemMessage errorMessage)
          From IISeriesMemberPromptListener.
 void memberNameChanged(SystemMessage errorMessage)
          From IISeriesMemberPromptListener.
 void objectNameChanged(SystemMessage errorMessage)
          From IISeriesMemberPromptListener.
protected  boolean processOK()
          Overide of parent method.
 void setDisableConnectionCombo(boolean disable)
          Sets whether to disable connection combo.
 void setPageComplete()
          Set the dialog's OK button to enabled or disabled.
protected  SystemMessage verify()
          Verify contents
 void widgetDefaultSelected(SelectionEvent event)
          User has pressed Enter or Double Click on something...
 void widgetSelected(SelectionEvent event)
          User has selected something.
 
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

QSYSOpenMemberDialog

public QSYSOpenMemberDialog(Shell shell)
Constructor for JLpexOpen.

Parameters:
shell - - the shell that owns this modal dialog
Method Detail

createInner

protected Control createInner(Composite parent)
See Also:
com.ibm.etools.systems.core.ui.dialogs.SystemPromptDialog#createInner(Composite)

getInitialFocusControl

protected Control getInitialFocusControl()
See Also:
com.ibm.etools.systems.core.ui.dialogs.SystemPromptDialog#getInitialFocusControl()

processOK

protected boolean processOK()
Overide of parent method. Called when OK is pressed.

Returns:
true if ok to leave, false if errors found

verify

protected SystemMessage verify()
Verify contents


isPageComplete

protected boolean isPageComplete()
Internal method to decide if OK button should be enabled.


setDisableConnectionCombo

public void setDisableConnectionCombo(boolean disable)
Sets whether to disable connection combo. Use this if you do not want the user to be able to pick the connection, e.g. if you are enabling this of a popup menu for an item that has a parent connection, you probably want to keep that connection fixed in the dialog.

Parameters:
disable -

setPageComplete

public void setPageComplete()
Set the dialog's OK button to enabled or disabled. Calls isPageComplete() to decide.


getLibraryName

protected String getLibraryName()
Return the user-entered library


getFileName

protected String getFileName()
Return the user-entered file


getMemberName

protected String getMemberName()
Return the user-entered member


getISeriesConnection

public IBMiConnection getISeriesConnection()
Return the user-entered connection


getISeriesMember

public IQSYSMember getISeriesMember()
Return the user-selected member as an ISeriesMember object.


getOpenForEdit

public boolean getOpenForEdit()
Return true if open for edit selected, false if open for browse selected


memberNameChanged

public void memberNameChanged(SystemMessage errorMessage)
From IISeriesMemberPromptListener. Called as used changes member name.

Specified by:
memberNameChanged in interface IQSYSMemberPromptListener
Parameters:
errorMessage - Will be null if the input is valid, or a translated msg if not

libraryNameChanged

public void libraryNameChanged(SystemMessage errorMessage)
From IISeriesMemberPromptListener. Called as used changes library name.

Specified by:
libraryNameChanged in interface IQSYSLibraryPromptListener
Parameters:
errorMessage - Will be null if the input is valid, or a translated msg if not

objectNameChanged

public void objectNameChanged(SystemMessage errorMessage)
From IISeriesMemberPromptListener. Called as used changes file name.

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

widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent event)
User has pressed Enter or Double Click on something...


widgetSelected

public void widgetSelected(SelectionEvent event)
User has selected something.


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.