Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.wizards
Class RPGDSpecDataStructurePage

java.lang.Object
  extended by AbstractSystemWizardPage
      extended by com.ibm.etools.iseries.edit.wizards.RPGDSpecDataStructurePage
Direct Known Subclasses:
DSpecExternalPage, DSpecSimplePage

public class RPGDSpecDataStructurePage
extends AbstractSystemWizardPage


Field Summary
protected  boolean aligned
           
protected  boolean based
           
protected  Button dads
           
protected  boolean dim
           
protected  RPGDataStructureDSpec dspec
           
protected  boolean isCurProc
           
protected  RPGDSpecDSKeywordsPane keywordPane
           
protected  RPGDSpecDSKeywords kwds
           
protected  RPGKeywordTextEntry lenEntry
           
protected  ValidatorIntegerRangeInput lenVld
           
protected  boolean nameForced
           
protected  Button psds
           
protected  DSpecCreationWizard wizard
           
 
Constructor Summary
RPGDSpecDataStructurePage(DSpecCreationWizard wizard, String pageID, String titleKey, String descriptionKey, String helpID)
          Creates the page for the dspec creation wizard.
 
Method Summary
 void clearErrorMessage(RPGDSpecDSKeywordsPane pane)
           
 Control createContents(Composite parent)
          (non-Javadoc) Method declared on IDialogPage.
protected  void createLengthEntry(Composite cmp)
           
 boolean finish()
          Creates a new file resource as requested by the user.
protected  void generateDSpec()
           
 boolean getDim()
          retireves the DIM setting
protected  Control getInitialFocusControl()
           
 RPGDSpecDSKeywordsPane getKeywordPane()
          retrieve the keyword pane
 IWizardPage getNextPage()
           
 Object getOutputObject()
           
 IWizardPage getPreviousPage()
           
protected  RPGDSpecDataStructureSubfieldPage getSubfieldPage()
           
 void handleEvent(Event e)
          (non-Javadoc) Method declared on WizardNewFileCreationPage.
protected  void initDSpec()
           
 boolean isNameForced()
           
 boolean isSelected(Button btn)
           
 boolean performFinish()
           
 void setAligned(boolean aligned)
           
 void setBased(boolean base)
           
 void setCurrentProcedure(boolean isCurProc)
           
 void setDim(boolean dim)
           
 void setInputObject(Object inputObject)
           
 void setNameForced(boolean b)
           
protected  void setOptionsTooltip()
           
 void validateInput(Object object, boolean b)
           
 void widgetDefaultSelected(SelectionEvent e)
           
 void widgetSelected(SelectionEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wizard

protected DSpecCreationWizard wizard

keywordPane

protected RPGDSpecDSKeywordsPane keywordPane

lenEntry

protected RPGKeywordTextEntry lenEntry

lenVld

protected ValidatorIntegerRangeInput lenVld

psds

protected Button psds

dads

protected Button dads

based

protected boolean based

nameForced

protected boolean nameForced

dim

protected boolean dim

aligned

protected boolean aligned

isCurProc

protected boolean isCurProc

kwds

protected RPGDSpecDSKeywords kwds

dspec

protected RPGDataStructureDSpec dspec
Constructor Detail

RPGDSpecDataStructurePage

public RPGDSpecDataStructurePage(DSpecCreationWizard wizard,
                                 String pageID,
                                 String titleKey,
                                 String descriptionKey,
                                 String helpID)
Creates the page for the dspec creation wizard.

Parameters:
workbench - the workbench on which the page should be created
selection - the current selection
Method Detail

createContents

public Control createContents(Composite parent)
(non-Javadoc) Method declared on IDialogPage.


setOptionsTooltip

protected void setOptionsTooltip()

createLengthEntry

protected void createLengthEntry(Composite cmp)

finish

public boolean finish()
Creates a new file resource as requested by the user. If everything is OK then answer true. If not, false will cause the dialog to stay open.

Returns:
whether creation was successful
See Also:
ReadmeCreationWizard#performFinish()

handleEvent

public void handleEvent(Event e)
(non-Javadoc) Method declared on WizardNewFileCreationPage.


widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent e)

widgetSelected

public void widgetSelected(SelectionEvent e)

getInitialFocusControl

protected Control getInitialFocusControl()

performFinish

public boolean performFinish()

getOutputObject

public Object getOutputObject()

generateDSpec

protected void generateDSpec()

initDSpec

protected void initDSpec()

setInputObject

public void setInputObject(Object inputObject)

getNextPage

public IWizardPage getNextPage()

getSubfieldPage

protected RPGDSpecDataStructureSubfieldPage getSubfieldPage()

validateInput

public void validateInput(Object object,
                          boolean b)
Parameters:
object -
b -

isSelected

public boolean isSelected(Button btn)

setBased

public void setBased(boolean base)
Parameters:
base -

isNameForced

public boolean isNameForced()
Returns:

setNameForced

public void setNameForced(boolean b)
Parameters:
b -

getPreviousPage

public IWizardPage getPreviousPage()

setDim

public void setDim(boolean dim)
Parameters:
dim -

getDim

public boolean getDim()
retireves the DIM setting

Returns:
true if DIM has been set, false otherwise

clearErrorMessage

public void clearErrorMessage(RPGDSpecDSKeywordsPane pane)
Parameters:
pane -

setAligned

public void setAligned(boolean aligned)
Parameters:
aligned -

setCurrentProcedure

public void setCurrentProcedure(boolean isCurProc)
Parameters:
isCurProc -

getKeywordPane

public RPGDSpecDSKeywordsPane getKeywordPane()
retrieve the keyword pane

Returns:
the keyword pane

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.