Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.wizard.cmds
Class NewQSYSMemberWizardMainPage

java.lang.Object
  extended by AbstractSystemWizardPage
      extended by com.ibm.etools.iseries.rse.ui.wizard.cmds.AbstractNewQSYSObjectWizardMainPage
          extended by com.ibm.etools.iseries.rse.ui.wizard.cmds.NewQSYSMemberWizardMainPage
All Implemented Interfaces:
IQSYSLibraryPromptListener, IQSYSMemberPromptListener, IQSYSObjectPromptListener

public class NewQSYSMemberWizardMainPage
extends AbstractNewQSYSObjectWizardMainPage
implements IQSYSMemberPromptListener

Default main page of the "New Member" wizard. This page asks for the following information:


Field Summary
static String copyright
           
protected  SystemHistoryCombo mbrTypeCombo
           
protected  List mbrTypesList
           
 
Fields inherited from class com.ibm.etools.iseries.rse.ui.wizard.cmds.AbstractNewQSYSObjectWizardMainPage
CMDDFT, CMDDFT_ARRAY, cmdStringDelta, commandSoFar, commandString, connection, connPrompt, entryObjPrompt, entryObjText, errorMessage, inpLib, inpObj, inpText, newLib, newObj, newText
 
Constructor Summary
NewQSYSMemberWizardMainPage(Wizard wizard, IHost connection)
          Constructor.
 
Method Summary
protected  String buildCommandString()
          Build up the QSYS command from current contents...
protected  String buildCommandStringDelta()
          For child subclasses.
protected  String getCommandStart()
          Return the start of the command.
 String getFileName()
          Return the name of the file to add a member to.
protected  Control getInitialFocusControl()
          Return the Control to be given initial focus.
 String getMemberName()
          Return the name of the member to add a member to
protected  QSYSMemberPrompt getMemberPrompt()
          Return the object prompt cast to an QSYSMemberPrompt
 String getMemberText()
          Return the text of the member to add.
 String getMemberType()
          Return the src type of the member to add
protected  QSYSBasePrompt getObjectPrompt(Composite composite_prompts, int nbrColumns)
          Return the widget for prompting for the object
protected  String getTextLabel()
          Return the key to use to get the xlated label and tooltip for the TEXT fields
protected  String getTextTooltip()
          Return the label to use to get the xlated label and tooltip for the TEXT fields
 void handleEvent(Event e)
          Handles events generated by controls on this page.
protected  boolean internalIsPageComplete()
          Do page completion testing beyond what the base class does.
 void memberNameChanged(SystemMessage error)
          From IQSYSMemberPromptListener.
 void modifyText(ModifyEvent event)
          Validate member type, as it is typed.
protected  Control performFinishValidation()
          Do validation beyond what the base class does, when Finish is pressed.
protected  void populateControls(Composite composite_prompts, int nbrColumns)
          Populate the content area with additional controls beyond what the parent supplies...
protected  void prepareControls()
          Pre-fill any child-class-unique controls with passed-in data, and set any keystroke listeners...
 void setConnection(IHost connection)
          Set the connection.
 void setFileName(String file)
          Set file name.
 void setIsSourceFile(boolean isSrcFile)
          Set if the file we are adding a member to is a source file versus a data file
 void setMemberName(String mbr)
          Set member name
 void setMemberText(String mbrtext)
          Set member text.
 void setMemberType(String mbrtype)
          Set member type
protected  void sizeControls(Composite composite_prompts, int nbrColumns)
          Adjust the size of any child-class-unique controls...
protected  SystemMessage validateMemberType()
          Validate member type
 
Methods inherited from class com.ibm.etools.iseries.rse.ui.wizard.cmds.AbstractNewQSYSObjectWizardMainPage
buildOurCommandStringDelta, createContents, createRigidFillerLabel, getCommandString, getCommandStringDelta, getConnection, getLibraryName, getLibraryPrompt, getObjectName, getObjectPrompt, getObjectText, getOurWizard, isPageComplete, libraryNameChanged, objectNameChanged, performFinish, setLibraryName, setObjectName, setObjectText, setVisible, validateTextInput, widgetDefaultSelected, widgetSelected
 
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.IQSYSObjectPromptListener
objectNameChanged
 
Methods inherited from interface com.ibm.etools.iseries.rse.ui.widgets.IQSYSLibraryPromptListener
libraryNameChanged
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

mbrTypeCombo

protected SystemHistoryCombo mbrTypeCombo

mbrTypesList

protected List mbrTypesList
Constructor Detail

NewQSYSMemberWizardMainPage

public NewQSYSMemberWizardMainPage(Wizard wizard,
                                   IHost connection)
Constructor.

Method Detail

getMemberPrompt

protected QSYSMemberPrompt getMemberPrompt()
Return the object prompt cast to an QSYSMemberPrompt


getInitialFocusControl

protected Control getInitialFocusControl()
Return the Control to be given initial focus. Override from parent. Return control to be given initial focus.

Overrides:
getInitialFocusControl in class AbstractNewQSYSObjectWizardMainPage

setConnection

public void setConnection(IHost connection)
Set the connection. This can be called later if null is passed in the constructor

Overrides:
setConnection in class AbstractNewQSYSObjectWizardMainPage

setFileName

public void setFileName(String file)
Set file name. Same as calling setObjectName


setIsSourceFile

public void setIsSourceFile(boolean isSrcFile)
Set if the file we are adding a member to is a source file versus a data file


setMemberName

public void setMemberName(String mbr)
Set member name


setMemberType

public void setMemberType(String mbrtype)
Set member type


setMemberText

public void setMemberText(String mbrtext)
Set member text. Same as calling setObjectText


getFileName

public String getFileName()
Return the name of the file to add a member to. Same as calling getObjectName


getMemberName

public String getMemberName()
Return the name of the member to add a member to


getMemberType

public String getMemberType()
Return the src type of the member to add


getMemberText

public String getMemberText()
Return the text of the member to add. Same as calling getObjectText


handleEvent

public void handleEvent(Event e)
Handles events generated by controls on this page. Overridden from parent.

Overrides:
handleEvent in class AbstractNewQSYSObjectWizardMainPage

memberNameChanged

public void memberNameChanged(SystemMessage error)
From IQSYSMemberPromptListener. Called as user types member name. Given string is error message.

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

modifyText

public void modifyText(ModifyEvent event)
Validate member type, as it is typed.


validateMemberType

protected SystemMessage validateMemberType()
Validate member type


buildCommandString

protected String buildCommandString()
Build up the QSYS command from current contents... Override of parent.

Overrides:
buildCommandString in class AbstractNewQSYSObjectWizardMainPage

getTextLabel

protected String getTextLabel()
Return the key to use to get the xlated label and tooltip for the TEXT fields

Specified by:
getTextLabel in class AbstractNewQSYSObjectWizardMainPage

getTextTooltip

protected String getTextTooltip()
Description copied from class: AbstractNewQSYSObjectWizardMainPage
Return the label to use to get the xlated label and tooltip for the TEXT fields

Specified by:
getTextTooltip in class AbstractNewQSYSObjectWizardMainPage

getObjectPrompt

protected QSYSBasePrompt getObjectPrompt(Composite composite_prompts,
                                         int nbrColumns)
Return the widget for prompting for the object

Specified by:
getObjectPrompt in class AbstractNewQSYSObjectWizardMainPage

populateControls

protected void populateControls(Composite composite_prompts,
                                int nbrColumns)
Populate the content area with additional controls beyond what the parent supplies...

Specified by:
populateControls in class AbstractNewQSYSObjectWizardMainPage

prepareControls

protected void prepareControls()
Pre-fill any child-class-unique controls with passed-in data, and set any keystroke listeners...

Specified by:
prepareControls in class AbstractNewQSYSObjectWizardMainPage

sizeControls

protected void sizeControls(Composite composite_prompts,
                            int nbrColumns)
Adjust the size of any child-class-unique controls...

Specified by:
sizeControls in class AbstractNewQSYSObjectWizardMainPage

getCommandStart

protected String getCommandStart()
Return the start of the command. Eg "CRTDTAQ DTAQ(" Actually, we don't use it!

Specified by:
getCommandStart in class AbstractNewQSYSObjectWizardMainPage

buildCommandStringDelta

protected String buildCommandStringDelta()
For child subclasses. Build the command string for the additional parameters not handled by the base class.

Specified by:
buildCommandStringDelta in class AbstractNewQSYSObjectWizardMainPage

performFinishValidation

protected Control performFinishValidation()
Do validation beyond what the base class does, when Finish is pressed. Return the control to set focus to if any error is found. Also, set the errorMessage instance variable if an error is found. Further, set any newXXX instance variables you want to access via getXXX methods after successful finish.

Specified by:
performFinishValidation in class AbstractNewQSYSObjectWizardMainPage

internalIsPageComplete

protected boolean internalIsPageComplete()
Do page completion testing beyond what the base class does. Return true if it is ok to enable Finish.

Specified by:
internalIsPageComplete in class AbstractNewQSYSObjectWizardMainPage

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.