Rational Developer for Power Systems Software
V7.6

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

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

public class NewQSYSSourceFileWizardMainPage
extends AbstractNewQSYSObjectWizardMainPage
implements IQSYSFilePromptTypes

Main page of the "New Source Physical File" 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
 
Fields inherited from interface com.ibm.etools.iseries.rse.ui.widgets.IQSYSFilePromptTypes
FILETYPE_ANY, FILETYPE_DSPF, FILETYPE_DTA, FILETYPE_PRTF, FILETYPE_SRC, FILETYPE_SRC_OR_DTA
 
Constructor Summary
NewQSYSSourceFileWizardMainPage(Wizard wizard, IHost connection)
          Constructor.
 
Method Summary
protected  String buildCommandStringDelta()
          For child subclasses.
protected  String getCommandStart()
          Return the start of the command.
 String getFileRecordLength()
          Return the rcdlen of the file to create
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
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...
 void setFileRecordLength(String rcdLen)
          Set file record length
protected  void sizeControls(Composite composite_prompts, int nbrColumns)
          Adjust the size of any child-class-unique controls...
protected  SystemMessage validateRcdLenInput()
          Validate record length as it is typed
 
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, handleEvent, 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
 

Field Detail

copyright

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

NewQSYSSourceFileWizardMainPage

public NewQSYSSourceFileWizardMainPage(Wizard wizard,
                                       IHost connection)
Constructor.

Method Detail

setFileRecordLength

public void setFileRecordLength(String rcdLen)
Set file record length


getFileRecordLength

public String getFileRecordLength()
Return the rcdlen of the file to create


validateRcdLenInput

protected SystemMessage validateRcdLenInput()
Validate record length as it is typed


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

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.