iSeries Remote Systems
v6.0.0

com.ibm.etools.iseries.editor
Class ISeriesEditorDDSFormatLine

java.lang.Object
  extended bycom.ibm.etools.iseries.editor.ISeriesEditorDDSFormatLine
All Implemented Interfaces:
EventListener, IISeriesEditorConstantsColors, IISeriesEditorConstantsDDS, com.ibm.lpex.core.LpexCursorListener, com.ibm.lpex.core.LpexKeyListener

public class ISeriesEditorDDSFormatLine
extends Object
implements com.ibm.lpex.core.LpexCursorListener, com.ibm.lpex.core.LpexKeyListener, IISeriesEditorConstantsDDS

This class performs format line and tab processing


Field Summary
protected  ISeriesEditorDDSParser _parser
           
protected  String[] _straFormatLines
           
protected static String _strFieldsComment
           
protected static String _strFieldsFldDT
           
protected static String _strFieldsFldI
           
protected static String _strFieldsFldL
           
protected static String _strFieldsFldP
           
protected static String _strFieldsHelpD
           
protected static String _strFieldsKwdDTI
           
protected static String _strFieldsKwdPL
           
protected static String _strFieldsRecDTPLI
           
protected static Vector _vectorFieldStrings
           
protected  Vector _vectorTabArrays
           
protected  com.ibm.lpex.core.LpexView _view
           
static String copyright
           
protected static int[] iaComment
           
protected static int[] iaFldDT
           
protected static int[] iaFldI
           
protected static int[] iaFldL
           
protected static int[] iaFldP
           
protected static int[] iaHelpD
           
protected static int[] iaKwdDTI
           
protected static int[] iaKwdPL
           
protected static int[] iaRecDTPLI
           
 
Fields inherited from interface com.ibm.etools.iseries.editor.IISeriesEditorConstantsDDS
AS400_DISPLAY_FILE, AS400_ICOMM_FILE, AS400_LOGICAL_FILE, AS400_PHYSICAL_FILE, AS400_PRINTER_FILE, AS400_UNKNOWN_FILE, COLUMN_AND_OR_COMMENT, COLUMN_COMMENT, COLUMN_COND_IND_1, COLUMN_COND_IND_2, COLUMN_COND_IND_3, COLUMN_COND_IND_DSP, COLUMN_CONSTBLNK, COLUMN_DATA_TYPE, COLUMN_DDS_EXTRA, COLUMN_DEC, COLUMN_KEY_ENTRY, COLUMN_LAST, COLUMN_LENGTH, COLUMN_LOCATION_LINE, COLUMN_LOCATION_POS, COLUMN_NAME, COLUMN_NOT_COND_IND_1, COLUMN_NOT_COND_IND_2, COLUMN_NOT_COND_IND_3, COLUMN_REFERENCE, COLUMN_RESERVED, COLUMN_SPEC, COLUMN_USAGE, LENGTH_COND_IND_1, LENGTH_COND_IND_2, LENGTH_COND_IND_3, LENGTH_COND_IND_DSP, LENGTH_CONSTBLNK, LENGTH_DATA_TYPE, LENGTH_KEY_ENTRY, LENGTH_LENGTH, LENGTH_LOCATION_LINE, LENGTH_LOCATION_POS, LENGTH_NAME, LENGTH_NOT_COND_IND, LENGTH_NOT_COND_IND_1, LENGTH_NOT_COND_IND_2, LENGTH_NOT_COND_IND_3, LENGTH_POS17TO44, LENGTH_POS17TO80, LENGTH_POS7TO44, LENGTH_REFERENCE, LENGTH_RESERVED, LENGTH_RESPONSE_INDICATOR, PREF_DDS_PREFIX, PROMPT_ALL, PROMPT_COMMENT, PROMPT_FIELD_HEADING, PROMPT_FIELD_KEYWORD, PROMPT_FILE_KEYWORD, PROMPT_HELP_HEADING, PROMPT_HELP_KEYWORD, PROMPT_JOIN_HEADING, PROMPT_JOIN_KEYWORD, PROMPT_KEY_HEADING, PROMPT_KEY_KEYWORD, PROMPT_LAST, PROMPT_NONE, PROMPT_RECORD_HEADING, PROMPT_RECORD_KEYWORD, PROMPT_SELECT_OMIT_HEADING, PROMPT_SPECIAL, PROMPT_UNDEFINED, SPEC_FIELD, SPEC_HELP, SPEC_JOIN, SPEC_KEYFIELD, SPEC_OMIT, SPEC_RECORD, SPEC_SELECT, STRING_DDS_SPECIAL_COMMENT, STRING_DDS_SPECIAL_FA, STRING_FONT_COMMENT, STRING_FONT_FIELD_HEADING_DT, STRING_FONT_FIELD_HEADING_I, STRING_FONT_FIELD_HEADING_L, STRING_FONT_FIELD_HEADING_P, STRING_FONT_FIELD_KEYWORD_DTI, STRING_FONT_FIELD_KEYWORD_PL, STRING_FONT_FILE_KEYWORD_DTI, STRING_FONT_FILE_KEYWORD_PL, STRING_FONT_HELP_HEADING_D, STRING_FONT_HELP_KEYWORD_D, STRING_FONT_JOIN_HEADING_L, STRING_FONT_JOIN_KEYWORD_L, STRING_FONT_KEY_HEADING_PL, STRING_FONT_KEY_KEYWORD_PL, STRING_FONT_NONE, STRING_FONT_RECORD_HEADING_DTI, STRING_FONT_RECORD_HEADING_PL, STRING_FONT_RECORD_KEYWORD_DTI, STRING_FONT_RECORD_KEYWORD_PL, STRING_FONT_SELECT_OMIT_HEADING_L, STRING_FONT_SPECIAL, STRING_FONT_UNDEFINED, STRING_HELP_DOC_PLUGIN_ID, STRING_HELP_TABLE_FILENAME, STRING_HELP_TABLE_PLUGIN_ID, STRING_MESSAGE_HELP_DOC_PLUGIN_ID, STRING_MESSAGE_HELP_TABLE_FILENAME, STRING_MESSAGE_HELP_TABLE_PLUGIN_ID, STRING_NOT_COND_IND
 
Fields inherited from interface com.ibm.etools.iseries.editor.IISeriesEditorConstantsColors
COLOR_BLACK_WHITE, COLOR_BLUE_WHITE, COLOR_BRIGHTBLUE_WHITE, COLOR_BRIGHTGREEN_WHITE, COLOR_BRIGHTGREY_WHITE, COLOR_BRIGHTPINK_WHITE, COLOR_BRIGHTRED_WHITE, COLOR_BROWN_WHITE, COLOR_CYAN_WHITE, COLOR_ERROR_HIGHLIGHT, COLOR_GREEN_WHITE, COLOR_GREY_WHITE, COLOR_HIGHLIGHT, COLOR_MAGENTA_WHITE, COLOR_PINK_WHITE, COLOR_RED_WHITE, COLOR_WHITE_BRIGHTRED
 
Constructor Summary
ISeriesEditorDDSFormatLine(com.ibm.lpex.core.LpexView view, ISeriesEditorDDSParser parser)
          Constructor
 
Method Summary
 void doFormatLine(int iSpecType)
          Update the format line based on the line spec type.
protected  void doTabs(int iSpecType)
          Create a string of the format "set tabs 5 6 10 20..."
 void doUpdate(int iSpecType)
          Update the current element's format line and tabs based on the given spec type
 void elementChanged(com.ibm.lpex.core.LpexView view)
          Called when the editor cursor changes to a different element.
protected  String getFormatLine(int iSpecType)
          Returns the format line given the spec type.
protected  void initializeFormatLines(int iDDSType)
          Sets up list of format line strings.
protected  void initializeTabs(int iDDSType)
          Sets up list of tabbing arrays.
 void keyPressed(Event event)
           
 
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

_view

protected com.ibm.lpex.core.LpexView _view

_parser

protected ISeriesEditorDDSParser _parser

_straFormatLines

protected String[] _straFormatLines

_vectorTabArrays

protected Vector _vectorTabArrays

_vectorFieldStrings

protected static Vector _vectorFieldStrings

iaKwdDTI

protected static final int[] iaKwdDTI

iaRecDTPLI

protected static final int[] iaRecDTPLI

iaHelpD

protected static final int[] iaHelpD

iaFldDT

protected static final int[] iaFldDT

iaKwdPL

protected static final int[] iaKwdPL

iaFldP

protected static final int[] iaFldP

iaFldL

protected static final int[] iaFldL

iaFldI

protected static final int[] iaFldI

iaComment

protected static final int[] iaComment

_strFieldsKwdDTI

protected static final String _strFieldsKwdDTI
See Also:
Constant Field Values

_strFieldsRecDTPLI

protected static final String _strFieldsRecDTPLI
See Also:
Constant Field Values

_strFieldsHelpD

protected static final String _strFieldsHelpD
See Also:
Constant Field Values

_strFieldsFldDT

protected static final String _strFieldsFldDT
See Also:
Constant Field Values

_strFieldsKwdPL

protected static final String _strFieldsKwdPL
See Also:
Constant Field Values

_strFieldsFldP

protected static final String _strFieldsFldP
See Also:
Constant Field Values

_strFieldsFldL

protected static final String _strFieldsFldL
See Also:
Constant Field Values

_strFieldsFldI

protected static final String _strFieldsFldI
See Also:
Constant Field Values

_strFieldsComment

protected static final String _strFieldsComment
See Also:
Constant Field Values
Constructor Detail

ISeriesEditorDDSFormatLine

public ISeriesEditorDDSFormatLine(com.ibm.lpex.core.LpexView view,
                                  ISeriesEditorDDSParser parser)
Constructor

Method Detail

doFormatLine

public void doFormatLine(int iSpecType)
Update the format line based on the line spec type.


doTabs

protected void doTabs(int iSpecType)
Create a string of the format "set tabs 5 6 10 20..."


doUpdate

public void doUpdate(int iSpecType)
Update the current element's format line and tabs based on the given spec type


elementChanged

public void elementChanged(com.ibm.lpex.core.LpexView view)
Called when the editor cursor changes to a different element.

Specified by:
elementChanged in interface com.ibm.lpex.core.LpexCursorListener

getFormatLine

protected String getFormatLine(int iSpecType)
Returns the format line given the spec type.


initializeFormatLines

protected void initializeFormatLines(int iDDSType)
Sets up list of format line strings.


initializeTabs

protected void initializeTabs(int iDDSType)
Sets up list of tabbing arrays. Port of evfslxtb.c, setUpTabs.


keyPressed

public void keyPressed(Event event)
Specified by:
keyPressed in interface com.ibm.lpex.core.LpexKeyListener

iSeries Remote Systems
v6.0.0

Copyright © 2005 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.