Rational Developer for Power Systems Software
V7.6

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

java.lang.Object
  extended by com.ibm.etools.iseries.edit.wizards.RPGFieldTypeBasePane
All Implemented Interfaces:
IISeriesRPGWizardConstants
Direct Known Subclasses:
RPGDSpecFieldTypeBasePane, RPGProcedureFieldTypeBasePane

public class RPGFieldTypeBasePane
extends Object
implements IISeriesRPGWizardConstants


Field Summary
protected  Label arrayLbl
           
protected  Button btnCcsid
           
protected  Button btnDS
           
protected  Button btnFld
           
protected  Button btnLike
           
protected  Button btnRec
           
protected  Label ccsidNbr
           
protected  Label classLbl
           
protected  Combo cmbType
           
protected  Composite cmpDatTimPtr
           
protected  Composite cmpLike
           
protected  Composite cmpType
           
protected  ValidatorConstantName constValidator
           
protected  Object container
           
static String Copyright
           
protected  RPGDateTimePane dateTimePane
           
protected  Label decimalsLbl
           
protected  Label dRangeLbl
           
protected  SystemMessage errorMessage
           
protected  boolean exportable
           
protected  RPGFieldType field
           
protected  Composite grpAttributes
           
protected  Group grpLike
           
protected  Group grpSpecify
           
protected  boolean hasCcsid
           
protected  int idx
           
protected  boolean initializing
           
protected  boolean isArray
           
protected  boolean isForParam
           
protected  boolean isLike
           
protected  int lastIdx
           
protected  Label lengthLbl
           
protected  boolean likeOnly
           
protected  Label lRangeLbl
           
protected  ValidatorFieldType nameValidator
           
protected  Text txtArray
           
protected  Text txtCcsid
           
protected  RPGLCEntry txtClass
           
protected  Text txtDecimals
           
protected  Text txtLength
           
protected  Text txtLike
           
protected  Label typeLbl
           
 
Fields inherited from interface com.ibm.etools.iseries.editor.IISeriesRPGWizardConstants
BIN_IDX, BLANKLINE, CHAR_IDX, CLASSFILE_IMG, CMTLINE, CODEGEN_CURPROC, CODEGEN_CURSOR, CODEGEN_GLOBAL, CODEGENLOC_ALLAFTERCURLINE, CODEGENLOC_ALLINNEW, CODEGENLOC_APPROPRIATE, CONST_NAME_SUFFIX, CONSTANT, copyright, CRPG4TYPES, CSPEC_CALLP, CSPEC_EVAL, DATE_IDX, DCMTHDR, DECALLOWED, DEFAULT_CTORNAME_SUFFIX, DEFAULT_FIELDNAME_PREFIX, DEFAULT_FIELDNAME_SUFFIX, DEFAULT_OBJNAME_SUFFIX, DEFAULT_RETURNNAME_SUFFIX, DS, DSPEC_KEYWORDS_INDEX, EXTERNALDS, F, FIELD, FIELDS, FLT_IDX, FOLDERCLOSED_IMG, GRAPHIC_IDX, IND_IDX, INFDS, INT_IDX, INZ_CHAR, INZ_COMMON, INZ_DATE, INZ_EXP, INZ_IND, INZ_LIKEDS, INZ_OBJ, INZ_TIME, INZVALS, JAR_IMG, JAVA_NATURE, LENALLOWED, LINE_BODY, LINE_BODY_FREE, LINE_CLASS_PROTOTYPE, LINE_CONST, LINE_CSPEC, LINE_DS, LINE_DSPEC, LINE_DSPEC_CONST_O, LINE_DSPEC_JMC, LINE_DSPEC_S, LINE_DSPEC_SO, LINE_DSPEC2, LINE_DSPEC3, LINE_EDS, LINE_ESDS, LINE_ESUB, LINE_EUDS, LINE_FIELD, LINE_FIELD_DS, LINE_FREE_BEGIN, LINE_FREE_END, LINE_INTERFACE, LINE_INTERFACE_JMC, LINE_PARAMETER_CODE_HDR, LINE_PARAMETER_HDR, LINE_PISPEC, LINE_PROCBEGIN, LINE_PROCBEGIN_EXPORT, LINE_PROCBEGIN_SERIALIZE, LINE_PROCEDURE_CODE_HDR, LINE_PROCEDURE_CODE_NAME_HDR, LINE_PROCEDURE_CODE_PPS_HDR, LINE_PROCEDURE_CODE_RTN_HDR, LINE_PROCEDURE_HDR, LINE_PROCEDURE_NAME_HDR, LINE_PROCEDURE_PPS_HDR, LINE_PROCEDURE_RTN_HDR, LINE_PROCEND, LINE_PROGRAM_CODE_NAME_HDR, LINE_PROTOTYPE, LINE_PROTOTYPE_EXPORT1, LINE_PROTOTYPE_EXPORT2, LINE_PROTOTYPE_EXPORT3, LINE_PROTOTYPE_HDR, LINE_PROTOTYPE_HDR2, LINE_PROTOTYPE_JMC, LINE_PROTOTYPE_SHORT, LINE_PSPEC, LINE_PSPEC_BEG, LINE_PSPEC_END, LINE_RETFIELD, LINE_RETURN, LINE_RETURN_FREE, LINE_RETURN_HDR, LINE_SDS, LINE_UDS, LONGLINE, MAX_ARRAY_DIMENSION, MAX_CHAR_FIELD_LENGTH, MAX_CHAR_VARY_FIELD_LENGTH, MAX_POSITIONAL_LENGTH, MAX_UCS2_FIELD_LENGTH, MAX_UCS2_VARY_FIELD_LENGTH, MAXLEN, MAXLENGTH, MAXRCD, METHOD_NAME_SUFFIX, MIN_ARRAY_DIMENSION, MIN_CHAR_FIELD_LENGTH, MIN_UCS2_FIELD_LENGTH, MINLEN, MINLENGTH, MINRCD, NUMBERS, OBJ_IDX, PACKED_IDX, PATH_SEP, PCMTHDR, PKG_IMG, PPTR_IDX, PSDS, PSDS_FROM, PTR_IDX, SDS, SHORTLINE, SIMPLEDS, SPEC_COMMENTS_INDEX, SPEC_TYPE_INDEX, T, TIME_IDX, UCS2_IDX, UDS, UNSN_IDX, VARYING, ZONED_IDX
 
Constructor Summary
RPGFieldTypeBasePane(Object container)
          Creates the pane for the RPG field type.
 
Method Summary
protected  void addClassEntry()
           
 SystemMessage checkError(boolean setFocus, Control skip)
           
protected  void clearErrorMessage(Object container)
           
 Control createContents(Composite parent)
          (non-Javadoc) Method declared on IDialogPage.
protected  void createLikeRadioButtons(Composite grpLike)
           
protected  SystemMessage doAdditionalValidation(boolean doSetFocus)
          Overridable extension point for subclasses to do validation of options If you do report an error, consider setting the focus to the appropriate widget, if setFocus is set.
protected  void enableKeywords(boolean enable)
           
 boolean finish()
           
protected  void generateOtherKeywds()
           
 void generateRPGFieldType()
           
 int getCurrentIndex()
           
 char getCurrentType()
           
protected  Control getInitialFocusControl()
           
 Object getOutputObject()
           
 Vector getSelectedKeywords()
           
 void handleEvent(Event e)
           
 boolean isCharacterField()
           
 boolean isDataStructure()
           
 boolean isLikeAnotherField()
           
 boolean isPageComplete()
           
 void modifyText(ModifyEvent e)
           
 boolean performFinish()
           
 void populateFieldType(RPGFieldType field)
           
protected  void prepareKeywords()
           
protected  void setArrayFlag(String text)
           
protected  void setCmbTypeItems()
           
 void setEnabled(boolean enabled)
           
protected  void setErrorMessage(Object container, SystemMessage errorMessage)
           
 void setExportable(boolean isExportable, boolean doValidate)
           
 void setInputObject(Object inputObject)
           
protected  void setIsArray()
           
 void setLengthValue(int length)
           
protected  void setLikeGroupEnabled(boolean state)
           
protected  void setLikeOnly(boolean likeonly)
           
protected  void setPageComplete(Object container)
           
 void setSelectedKeywords(Vector keywds)
           
protected  void update()
          Update contents of the container, and sets the page to complete
protected  void updateContainer(Object container)
           
protected  void updateContainer(Object container, boolean clearKeywordList)
           
protected  void updateKeywords()
           
protected  void updateKeywords(boolean enable)
           
protected  void updateKeywords(Object src)
           
 SystemMessage validateInput(boolean setFocus, Control skipControl)
          Check all input for errors.
protected  SystemMessage validateTxtArray(String text)
           
 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

Copyright

public static final String Copyright
See Also:
Constant Field Values

field

protected RPGFieldType field

nameValidator

protected ValidatorFieldType nameValidator

constValidator

protected ValidatorConstantName constValidator

errorMessage

protected SystemMessage errorMessage

isLike

protected boolean isLike

isArray

protected boolean isArray

hasCcsid

protected boolean hasCcsid

exportable

protected boolean exportable

initializing

protected boolean initializing

isForParam

protected boolean isForParam

likeOnly

protected boolean likeOnly

lastIdx

protected int lastIdx

idx

protected int idx

container

protected Object container

typeLbl

protected Label typeLbl

lengthLbl

protected Label lengthLbl

lRangeLbl

protected Label lRangeLbl

decimalsLbl

protected Label decimalsLbl

dRangeLbl

protected Label dRangeLbl

arrayLbl

protected Label arrayLbl

classLbl

protected Label classLbl

ccsidNbr

protected Label ccsidNbr

grpLike

protected Group grpLike

grpSpecify

protected Group grpSpecify

grpAttributes

protected Composite grpAttributes

cmpLike

protected Composite cmpLike

cmpType

protected Composite cmpType

cmpDatTimPtr

protected Composite cmpDatTimPtr

btnLike

protected Button btnLike

btnFld

protected Button btnFld

btnDS

protected Button btnDS

btnRec

protected Button btnRec

btnCcsid

protected Button btnCcsid

cmbType

protected Combo cmbType

txtLike

protected Text txtLike

txtLength

protected Text txtLength

txtDecimals

protected Text txtDecimals

txtArray

protected Text txtArray

txtCcsid

protected Text txtCcsid

txtClass

protected RPGLCEntry txtClass

dateTimePane

protected RPGDateTimePane dateTimePane
Constructor Detail

RPGFieldTypeBasePane

public RPGFieldTypeBasePane(Object container)
Creates the pane for the RPG field type.

Parameters:
container - the container that contains this pane
Method Detail

createContents

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


createLikeRadioButtons

protected void createLikeRadioButtons(Composite grpLike)

setCmbTypeItems

protected void setCmbTypeItems()

addClassEntry

protected void addClassEntry()

isLikeAnotherField

public boolean isLikeAnotherField()

isPageComplete

public boolean isPageComplete()
Returns:
whether this pane is completed

doAdditionalValidation

protected SystemMessage doAdditionalValidation(boolean doSetFocus)
Overridable extension point for subclasses to do validation of options If you do report an error, consider setting the focus to the appropriate widget, if setFocus is set.

Returns:
error message if an error detected, else null

finish

public boolean finish()
Returns:
whether this pane is finished

handleEvent

public void handleEvent(Event e)

widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent e)

widgetSelected

public void widgetSelected(SelectionEvent e)

setLikeGroupEnabled

protected void setLikeGroupEnabled(boolean state)

setLengthValue

public void setLengthValue(int length)

setIsArray

protected void setIsArray()

getInitialFocusControl

protected Control getInitialFocusControl()

performFinish

public boolean performFinish()

getOutputObject

public Object getOutputObject()

getCurrentType

public char getCurrentType()

getCurrentIndex

public int getCurrentIndex()

generateRPGFieldType

public void generateRPGFieldType()

setInputObject

public void setInputObject(Object inputObject)

populateFieldType

public void populateFieldType(RPGFieldType field)

generateOtherKeywds

protected void generateOtherKeywds()

updateKeywords

protected void updateKeywords(boolean enable)

enableKeywords

protected void enableKeywords(boolean enable)

getSelectedKeywords

public Vector getSelectedKeywords()

setSelectedKeywords

public void setSelectedKeywords(Vector keywds)

prepareKeywords

protected void prepareKeywords()

updateKeywords

protected void updateKeywords(Object src)

updateKeywords

protected void updateKeywords()

modifyText

public void modifyText(ModifyEvent e)

updateContainer

protected void updateContainer(Object container)

updateContainer

protected void updateContainer(Object container,
                               boolean clearKeywordList)

update

protected void update()
Update contents of the container, and sets the page to complete

Since:
6.0.1 //60459A

setErrorMessage

protected void setErrorMessage(Object container,
                               SystemMessage errorMessage)

setExportable

public void setExportable(boolean isExportable,
                          boolean doValidate)

setEnabled

public void setEnabled(boolean enabled)

setLikeOnly

protected void setLikeOnly(boolean likeonly)

clearErrorMessage

protected void clearErrorMessage(Object container)

setPageComplete

protected void setPageComplete(Object container)

setArrayFlag

protected void setArrayFlag(String text)

validateInput

public final SystemMessage validateInput(boolean setFocus,
                                         Control skipControl)
Check all input for errors. Subclasses should not override. Rather, they should override doAdditionalValidation(boolean) which this method calls.

Parameters:
setFocus - - true if to set focus on offending control
skipControl - - control to skip since already checked
Returns:
true if no errors

checkError

public SystemMessage checkError(boolean setFocus,
                                Control skip)

validateTxtArray

protected SystemMessage validateTxtArray(String text)

isCharacterField

public boolean isCharacterField()

isDataStructure

public boolean isDataStructure()

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.