Rational Developer for Power Systems Software
V7.6

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

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.NewQSYSLibraryWizardMainPage
All Implemented Interfaces:
IQSYSLibraryPromptListener, IQSYSObjectPromptListener

public class NewQSYSLibraryWizardMainPage
extends AbstractNewQSYSObjectWizardMainPage
implements IQSYSLibraryPromptListener

Main page of the "New Library" wizard.


Field Summary
static String copyright
           
 
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
NewQSYSLibraryWizardMainPage(Wizard wizard, IHost connection)
          Constructor.
 
Method Summary
protected  String buildCommandStringDelta()
          For child subclasses.
protected  String getCommandStart()
          Return the start of the command.
 String getLibraryType()
          Return the src type of the library 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 key 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  String internalGetLibraryType()
          Return the type selection as a string
protected  boolean internalIsPageComplete()
          Do page completion testing beyond what the base class does.
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...
protected  void selectLibraryType(String libtype)
          Select the appropriate type radio button given the type string
 void setLibraryType(String libtype)
          Set library type
protected  void sizeControls(Composite composite_prompts, int nbrColumns)
          Adjust the size of any child-class-unique controls...
 
Methods inherited from class com.ibm.etools.iseries.rse.ui.wizard.cmds.AbstractNewQSYSObjectWizardMainPage
buildCommandString, buildOurCommandStringDelta, createContents, createRigidFillerLabel, getCommandString, getCommandStringDelta, getConnection, getInitialFocusControl, getLibraryName, getLibraryPrompt, getObjectName, getObjectPrompt, getObjectText, getOurWizard, isPageComplete, libraryNameChanged, objectNameChanged, performFinish, setConnection, 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.IQSYSLibraryPromptListener
libraryNameChanged
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Constructor Detail

NewQSYSLibraryWizardMainPage

public NewQSYSLibraryWizardMainPage(Wizard wizard,
                                    IHost connection)
Constructor.

Method Detail

setLibraryType

public void setLibraryType(String libtype)
Set library type


selectLibraryType

protected void selectLibraryType(String libtype)
Select the appropriate type radio button given the type string


getLibraryType

public String getLibraryType()
Return the src type of the library to add


handleEvent

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

Overrides:
handleEvent 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()
Return the key 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("

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

internalGetLibraryType

protected String internalGetLibraryType()
Return the type selection as a string


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.