|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.iseries.editor.ISeriesEditorPrompter
public abstract class ISeriesEditorPrompter
This abstract base class is the interface between a prompt view and the editor. Subclasses must provide a getPromptPageId method that translates between an index and a prompt page identifier string. This adapter can add listeners which are notified whenever the cursor in the editor changes. The listener is given the line number, the line text, and the prompt page identifier string in an ISeriesEditorPromptChangeEvent.
Field Summary | |
---|---|
protected Action |
_actionInsertMode
|
protected IISeriesEditorPromptChangeListener |
_listener
|
protected LpexView |
_lpexView
|
protected IISeriesEditorParser |
_parser
|
protected ISeriesEditorPromptGroup |
_promptGroup
|
protected String |
_strPromptXmlFilename
|
static String |
copyright
|
Constructor Summary | |
---|---|
ISeriesEditorPrompter(LpexView view,
IISeriesEditorParser parser)
Constructor |
Method Summary | |
---|---|
void |
addPromptChangeListener(IISeriesEditorPromptChangeListener listener)
Method declared on IISeriesEditorPromptAdapter. |
void |
displayHelp(String strHelpResourceID)
Requests that the help for the given help resource identifier be displayed. |
void |
displayMessageHelp(String strMessageID)
Requests that the help for the given message identifier be displayed. |
void |
elementChanged(LpexView view)
Method declared on LpexCursorListener. |
IISeriesEditorPromptChangeListener |
getPromptChangeListener()
Return the prompt change listener |
String |
getPromptEncoding()
Returns the codepage that the editor is in. |
Font |
getPromptFont()
Returns the font that the editor is using. |
abstract String |
getPromptFormatLine(String strPromptPageId)
Subclasses must translate between from a prompt page identifier to a format line string. |
ISeriesEditorPromptGroup |
getPromptGroup()
Method declared in IISeriesEditorPromptAdapter. |
int |
getPromptMaxLineLength()
Returns the maximum line length of all editor text lines excluding the sequence/prefix area, or -1 if unknown. |
abstract String |
getPromptPageId(int iElement)
Subclasses must translate from a Element number to a prompt page identifier string. |
abstract int |
getPromptPageIndex(int iElement)
Subclasses must translate from a Element number to a prompt page index. |
protected URL |
getPromptUserInterfaceDefinitionURL()
Method declared on IISeriesEditorPromptAdapter Returns the URL of the XML file that contains the user interface definitions for each of the prompt pages. |
boolean |
getRetainLowerCase()
Method declared on IISeriesEditorPromptAdapter. |
void |
promptElementChanged(int iElementNumber,
String strText)
The editor is being notified by the prompter that the Element of text has been changed by the user within the prompt view. |
void |
promptLineChanged(int iLineNumber,
String strText)
Deprecated. |
void |
removePromptChangeListener(IISeriesEditorPromptChangeListener listener)
The editor is to remove a prompt change listener from its list of listeners. |
void |
setInsertModeAction(Action actionInsertMode)
Gives the adapter the action that tells it whether a new line should be created when the prompt view's apply button is pressed, or whether an existing line should be replaced. |
void |
setUserInterfaceDefinitionFilename(String strFilename)
|
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.edit.views.IISeriesEditorPromptAdapter |
---|
getSyntaxChecker |
Field Detail |
---|
public static final String copyright
protected Action _actionInsertMode
protected LpexView _lpexView
protected String _strPromptXmlFilename
protected ISeriesEditorPromptGroup _promptGroup
protected IISeriesEditorPromptChangeListener _listener
protected IISeriesEditorParser _parser
Constructor Detail |
---|
public ISeriesEditorPrompter(LpexView view, IISeriesEditorParser parser)
Method Detail |
---|
public void addPromptChangeListener(IISeriesEditorPromptChangeListener listener)
addPromptChangeListener
in interface IISeriesEditorPromptAdapter
public void elementChanged(LpexView view)
public void displayHelp(String strHelpResourceID)
displayHelp
in interface IISeriesEditorPromptAdapter
public void displayMessageHelp(String strMessageID)
displayMessageHelp
in interface IISeriesEditorPromptAdapter
public IISeriesEditorPromptChangeListener getPromptChangeListener()
getPromptChangeListener
in interface IISeriesEditorPromptAdapter
public String getPromptEncoding()
getPromptEncoding
in interface IISeriesEditorPromptAdapter
public Font getPromptFont()
getPromptFont
in interface IISeriesEditorPromptAdapter
public abstract String getPromptFormatLine(String strPromptPageId)
getPromptFormatLine
in interface IISeriesEditorPromptAdapter
public int getPromptMaxLineLength()
getPromptMaxLineLength
in interface IISeriesEditorPromptAdapter
public abstract String getPromptPageId(int iElement)
public abstract int getPromptPageIndex(int iElement)
getPromptPageIndex
in interface IISeriesEditorPromptAdapter
public ISeriesEditorPromptGroup getPromptGroup()
getPromptGroup
in interface IISeriesEditorPromptAdapter
public boolean getRetainLowerCase()
getRetainLowerCase
in interface IISeriesEditorPromptAdapter
protected URL getPromptUserInterfaceDefinitionURL()
public void promptLineChanged(int iLineNumber, String strText)
promptLineChanged
in interface IISeriesEditorPromptAdapter
public void promptElementChanged(int iElementNumber, String strText)
promptElementChanged
in interface IISeriesEditorPromptAdapter
public void removePromptChangeListener(IISeriesEditorPromptChangeListener listener)
IISeriesEditorPromptAdapter
removePromptChangeListener
in interface IISeriesEditorPromptAdapter
public void setInsertModeAction(Action actionInsertMode)
IISeriesEditorPromptAdapter
setInsertModeAction
in interface IISeriesEditorPromptAdapter
public void setUserInterfaceDefinitionFilename(String strFilename)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |