|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.viewers.Viewer
com.ibm.etools.iseries.editor.views.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.
Fields inherited from class org.eclipse.jface.viewers.Viewer |
---|
WIDGET_DATA_KEY |
Fields inherited from interface com.ibm.etools.iseries.editor.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. |
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 org.eclipse.jface.viewers.Viewer |
---|
addHelpListener, addSelectionChangedListener, fireHelpRequested, fireSelectionChanged, getData, handleHelpRequest, inputChanged, removeHelpListener, removeSelectionChangedListener, scrollDown, scrollUp, setData, setSelection |
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 Font _font
protected Hashtable _hashPageGroups
protected IISeriesEditorPromptAdapter _adapter
protected IISeriesEditorSyntaxChecker _syntaxChecker
protected ISeriesEditorPromptChangeEvent _changeEvent
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
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)
focusGained
in interface FocusListener
public void focusLost(FocusEvent event)
focusLost
in interface FocusListener
public Control getControl()
protected String getFieldHelpID(Control control)
protected Font getFont()
public Object getInput()
getInput
in interface IInputProvider
protected String getLineFromFieldValues()
public ISelection getSelection()
getSelection
in interface ISelectionProvider
public void helpRequested(HelpEvent hEvent)
helpRequested
in interface HelpListener
public void keyPressed(KeyEvent kEvent)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent kEvent)
keyReleased
in interface KeyListener
public void keyTraversed(TraverseEvent event)
keyTraversed
in interface TraverseListener
public void modifyText(ModifyEvent mEvent)
modifyText
in interface ModifyListener
public void promptChange(ISeriesEditorPromptChangeEvent event)
promptChange
in interface IISeriesEditorPromptChangeListener
public void propertyChange(PropertyChangeEvent event)
propertyChange
in interface IPropertyChangeListener
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
.
protected 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)
widgetDefaultSelected
in interface SelectionListener
public void widgetSelected(SelectionEvent sEvent)
widgetSelected
in interface SelectionListener
protected void doCopy()
protected void doPaste()
|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |