|
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 Viewer com.ibm.etools.iseries.edit.views.ISeriesEditorPromptViewer
public class ISeriesEditorPromptViewer
This class displays the content of the prompt view. The content is defined in an XML file, and is made up of one or more pages. One page is displayed at at time.
Nested Class Summary | |
---|---|
class |
ISeriesEditorPromptViewer.Debouncer
This class debounces change notifications from the DDS model and refreshes the editor. |
Fields inherited from interface com.ibm.etools.iseries.edit.IISeriesEditorConstantsPrompt |
---|
ALIGNMENT_BOTH, ALIGNMENT_LEFT, ALIGNMENT_NONE, ALIGNMENT_RIGHT |
Constructor Summary | |
---|---|
ISeriesEditorPromptViewer(Composite compositeParent,
IISeriesEditorPromptAdapter adapter,
Action actionCreateNewLine,
Action actionDisableView,
Action actionDisableSyntaxChecking)
Constructor. |
Method Summary | |
---|---|
protected void |
clearFields()
Sets the text field values to an empty string. |
protected Control |
createControl(Composite compositeParent)
Create the controls for this view. |
protected void |
createField(Composite compositeParent,
ISeriesEditorPromptFieldData data,
int iMaxLineLength)
Creates a composite with a label and either a combo box, or text field under it. |
protected void |
createPromptComposite()
Creates the composite with a child composite for the fields and one for the format line and current line. |
protected void |
doCopy()
Perform copy action for currently selected text or combo box field. |
protected void |
doPaste()
Perform copy action for currently selected text or combo box field. |
protected void |
ensureVisible(Composite composite)
Ensures that the field that the user has tabbed to is within the visible part of the client area. |
void |
fieldChanged()
Called whenever a field changes its value. |
void |
focusGained(FocusEvent event)
Emulates replace mode behaviour for a text field by selecting one character when the text field gains focus. |
void |
focusLost(FocusEvent event)
|
Control |
getControl()
Method declared on Viewer. |
protected String |
getFieldHelpID(Control control)
Returns the help identifier string for the field widget. |
protected Font |
getFont()
Returns the editor's current font. |
Object |
getInput()
Method declared on Viewer. |
protected String |
getLineFromFieldValues()
Reconstitutes a line to be placed into the editor from the individual fields. |
ISelection |
getSelection()
Method declared on Viewer. |
void |
helpRequested(HelpEvent hEvent)
The F1 key has been pressed on a control inside this view. |
void |
keyPressed(KeyEvent kEvent)
Does nothing. |
void |
keyReleased(KeyEvent kEvent)
For text fields, when the caret moves because of a key press, ensure that the caret and characters around it are visible by scrolling the viewport. |
void |
keyTraversed(TraverseEvent event)
Handles traversal between controls via the Tab and Backtab keys. |
void |
modifyText(ModifyEvent mEvent)
Called whenever a text field has been modified. |
protected void |
processChangeEvent(ISeriesEditorPromptChangeEvent event)
Called by the refresh timer after debouncing change events. |
void |
promptChange(ISeriesEditorPromptChangeEvent event)
Method declared on IISeriesEditorPromptChangeListener. |
void |
propertyChange(PropertyChangeEvent event)
Called when any of the toolbar items are toggled. |
void |
refresh()
Refreshes this viewer completely, getting new contents for the input from the content provider. |
void |
setEnabled(boolean bEnabled)
Enables / disables the view. |
protected boolean |
setFieldValuesFromLine(String strLine)
Sets the line of text. |
protected void |
setFocusToFieldFromPosition(int iPosition,
int iLength)
|
protected void |
setFocusToFirstField()
Sets the focus to the first field. |
void |
setInput(Object newInput)
The PropertySheetViewer implementation of this
method declared on Viewer method sets the objects
for which the viewer is currently showing properties. |
protected void |
setLineLabelText(String strText)
Windows takes an ampersand/letter with an underscored letter. |
protected void |
setPromptType(String strPromptId)
Sets the prompt page to be displayed. |
void |
setSelection(ISelection selection,
boolean reveal)
Method declared on Viewer. |
protected void |
showBlankPage()
Displays a blank prompt page |
protected boolean |
showPage(String strPageId)
Displays the page with the given name. |
protected boolean |
showPromptTypes()
Populates the drop down combo with the list of specification types. |
protected void |
showSyntaxErrorMessages(int iElementNumber)
Do syntax checking if disable syntax checking toolbar button is disabled |
void |
terminate()
Called by the page book view when the page is being disposed. |
void |
widgetDefaultSelected(SelectionEvent sEvent)
Does nothing. |
void |
widgetSelected(SelectionEvent sEvent)
Called when combo box selection occurs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String copyright
protected static String _strEmpty
protected Action _actionDisableSyntaxChecking
protected Action _actionDisableView
protected Action _actionInsertMode
protected Button _buttonApply
protected Button _buttonRevert
protected Combo _comboPromptType
protected Control _controlLastFocus
protected Composite _compositeClient
protected Composite _compositeFields
protected Composite _compositeParent
protected Composite _compositePrompt
protected ISeriesEditorPromptViewer.Debouncer _debouncer
protected Font _font
protected IISeriesEditorPromptAdapter _adapter
protected IISeriesEditorSyntaxChecker _syntaxChecker
protected ISeriesEditorPromptChangeEvent _changeEventProcessed
protected ISeriesEditorPromptChangeEvent _changeEventPending
protected ISeriesEditorPromptChangeEvent _changeEventReceived
protected ISeriesEditorPromptGroup _pageGroupCurrent
protected ISeriesEditorSyntaxError[] _aSyntaxErrors
protected ISeriesEditorViewport _viewport
protected Label _labelFormatLine
protected Label _labelLine
protected List _listSyntaxErrors
protected Object _objaInput
protected Rectangle _rectBounds
protected String _strElementCurrent
protected String _strPromptId
protected StringBuffer _stringBuffer
protected int _iIndexPageCurrent
protected int _iElementNumber
protected boolean _bApplyOrRevertPressed
Constructor Detail |
---|
public ISeriesEditorPromptViewer(Composite compositeParent, IISeriesEditorPromptAdapter adapter, Action actionCreateNewLine, Action actionDisableView, Action actionDisableSyntaxChecking)
Method Detail |
---|
protected void clearFields()
protected Control createControl(Composite compositeParent)
protected void createField(Composite compositeParent, ISeriesEditorPromptFieldData data, int iMaxLineLength)
protected void createPromptComposite()
protected void ensureVisible(Composite composite)
public void fieldChanged()
public void focusGained(FocusEvent event)
public void focusLost(FocusEvent event)
public Control getControl()
protected String getFieldHelpID(Control control)
protected Font getFont()
public Object getInput()
protected String getLineFromFieldValues()
public ISelection getSelection()
public void helpRequested(HelpEvent hEvent)
public void keyPressed(KeyEvent kEvent)
public void keyReleased(KeyEvent kEvent)
public void keyTraversed(TraverseEvent event)
public void modifyText(ModifyEvent mEvent)
public void promptChange(ISeriesEditorPromptChangeEvent event)
promptChange
in interface IISeriesEditorPromptChangeListener
protected void processChangeEvent(ISeriesEditorPromptChangeEvent event)
public void propertyChange(PropertyChangeEvent event)
public void refresh()
public void setEnabled(boolean bEnabled)
protected boolean setFieldValuesFromLine(String strLine)
protected void setFocusToFieldFromPosition(int iPosition, int iLength)
protected void setFocusToFirstField()
public void setInput(Object newInput)
PropertySheetViewer
implementation of this
method declared on Viewer
method sets the objects
for which the viewer is currently showing properties.
The input must be an Object[]
or null
.
input
- the input of this viewer, or null
if noneprotected void setLineLabelText(String strText)
protected void setPromptType(String strPromptId)
public void setSelection(ISelection selection, boolean reveal)
protected void showBlankPage()
protected boolean showPage(String strPageId)
protected boolean showPromptTypes()
protected void showSyntaxErrorMessages(int iElementNumber)
public void terminate()
public void widgetDefaultSelected(SelectionEvent sEvent)
public void widgetSelected(SelectionEvent sEvent)
protected void doCopy()
protected void doPaste()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |