|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Canvas
|
+--screen.QScreen
|
+--screen.QScreenTerm
Quickware Terminal Screen
This class implements the programmatic interface to the java QTerm
classes for accessing Unisys hosts. It is used by the QScreenBean
for non-visual interfaces and also by the QTermJava applets for use
as applets in browsers or as standalone java programs.
Notes for developers on using this class:
You atually create an instance of a class that is derived from QScreenTerm,
for example QScreenUTS or QScreenT27, but the callable methods are all here.
There are many API calls you can invoke and several events that fire
under specific conditions (see the QTermEventListener).
The simplest path to making a host connection would be to:
- Set the terminal name
- Issue the Connect, specifying the host parameters in a string
- Wait for connect confirmation, either by polling the interface
with calls to GetConnectionStatus(), by calling WaitConnected, or by
waiting for the OnConnected event to fire (note that you may receive
the OnConnectRequestRejected event instead)
- Send messages to the host and await responses
You can send a message to the host directly, bypassing the virtual screen
by using the SendText method but this is unusual unless you are sure it is
ok in your current context. The more usual manner is to simulate the keystrokes
of a user by setting the screen position with MoveTo and calling the Display
method to set the field text. As you can see in the documentation, there are
many methods to navigate the screen, modeled on the capabilities of a terminal
such as tabbing to the next tab position or moving to the home position.
When you have done setting the data in the required fields you can call the Xmit
method to transmit the screen contents to the host. This is an important concept
because the class takes care of all context knowledge and determines exactly
which fields to transmit etc.
When a data response from the host is received two events are fired. The first
is OnReceivedMessage which is not very interesting for most purposes. Then you
will see the OnDisplayedMessage which means that the message has been processed
and the virtual screen has been updated. Now is the time for you to retrieve
data from the virtual screen. Again there are several methods to enable you
to move around the screen and access data but the simplest one is GetRowText
(or GetText). Only you know what the host response screen is supposed to contain
so it is up to you to retrieve the required data and process accordingly.
When you are done simply call the Disconnect method.
| Field Summary |
| Fields inherited from class screen.QScreen |
atChangeMask, atColSep, atEmProt, atEntryMask, atFCC, atFlash, atFull, atIniColr, atIntensity, atMalpha, atMnumeric, atMprotect, atMsetAttr, atMunprot, atNoChange, atNoTab, atOff, atReverse, atRight, atSOprot, atStrike, atUnder, CLOCKS_PER_SEC, COLORATTRMASK, COLORMASKS, ctsConnected, ctsConnecting, ctsDisconnected, ctsDisconnecting, DBL_CLICK_DISPLAY_SOE, DBL_CLICK_NONE, DBL_CLICK_QUICK_CLICK, DBL_CLICK_SELECT_WORD, DBL_CLICK_SEND, DBL_CLICK_XMIT, emAdd, emColSep, emNone, EMPH_ATTR_COLOR_MASK, emRemove, emSet, emStrike, emUnder, laControl, laFlash, laReverse, m_accelerators, m_appDef, m_defDest, m_javaVer, m_popup, m_popupCmds, m_popupMenusList, m_popupNamesList, m_props, m_showCmdsPopup, m_showCmdsPos, MAX_SCREEN_COLS, MAX_SCREEN_ROWS, MAX_TERM_PAGES, scmGraphic, scmMixed, scmText, SCREEN_DEF_REF, SCREEN_DOWN, SCREEN_FIELD_BUF_SIZE, SCREEN_MAX_RECALL_CMDS, SCREEN_MAX_RECALL_SIZE, SCREEN_NO_COLOR, SCREEN_NO_XMIT, SCREEN_TIME_RECONNECT, SCREEN_UP, tsLocal, tsRcv, tsXmit, xAll, xAttention, xBreak, xCancel, xChanged, xClose, xConHostPkt, xConnect, xCursor, xDeregister, xDiscAbort, xDisconnect, xHold, xMsg, xOpen, xParams, xRegister, xStatus, xStringZ, xTTYchar, xTTYdata, xVariable, xXmitFrom |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
QScreenTerm()
|
|
| Method Summary | |
void |
AddKey(int cmd,
char key,
boolean shift,
boolean ctl,
boolean alt,
boolean ext)
|
void |
addQTermEventListener(screen.QTermEventListener listener)
Add a listener to the list of objects that are listening for events. |
int |
CaptureStart(java.lang.String captureFileName)
|
void |
CaptureStop()
|
void |
ClearCapture()
|
int |
Connect(java.lang.String hostDefn)
Establish a tcp/ip connection to the specified host |
void |
Copy()
Copy current screen selection to the clipboard |
void |
CopyTable()
Copy current screen selection to the clipboard as a tab separated table |
void |
Cut()
Cut current screen selection and paste to the clipboard |
void |
DeleteInDisplay()
Delete a character and move all following unprotected screen data back one position |
void |
DeleteInLine()
Ddelete a character and move all following unprotected row data back one position |
void |
DeleteLine()
Delete a line by moving screen up from current row |
void |
Disconnect()
Disconnect from host |
void |
Display(java.lang.String pTextString)
Display text on the screen at the current cursor position |
void |
DisplayAbout()
Display an About dialog |
void |
DisplayFF()
Display a FF (form feed) on the screen at the current cursor position |
void |
DisplayHelp()
Display help information |
void |
DisplayLF()
Display a LF (line feed) on the screen at the current cursor position |
void |
DisplayScroll(java.lang.String text,
int row,
boolean scrollBefore,
boolean scrollAfter,
boolean scrollUp)
Display a string at the current cursor position and scroll screen |
void |
DisplaySOE()
Display an SOE (start of entry) on the screen at the current cursor position |
void |
DisplayTab()
Display a tab character on the screen at the current cursor position |
void |
DuplicateLine()
Duplicate the current screen row |
void |
EraseCharacter()
Erase character at current cursor position |
void |
EraseDisplay(boolean eraseCompletely)
Erase the display, including protected data if eraseCompletely is true |
void |
EraseEOF()
Erase unprotected dsta to end of field |
void |
EraseField()
Erase unprotected data in the current field |
void |
EraseLine()
Erase unprotected data in the current row to end of line |
void |
EraseUnprotected()
Erase unprotected data from current cursor position to end of screen |
int |
FindKey(int key,
boolean shift,
boolean ctl,
boolean alt,
boolean ext)
|
int |
FindText(java.lang.String pTextString)
Find specified text |
static java.lang.String |
getAboutInfo()
Get AboutInfo setting |
int |
GetAttribute()
Get attribute at the current cursor position |
int |
GetAttribute(int row,
int col)
Get attribute at the specified cursor position |
short[] |
GetAttributes(int startRow,
int startCol,
int endRow,
int endCol)
Get the attributes from the specified screen row(s) |
int |
GetBackColor()
Get background color at currrent cursor position |
java.lang.String |
getCmdName(int cmd)
|
byte[] |
GetColors(int startRow,
int startCol,
int endRow,
int endCol)
Get the colors from the specified screen row(s) |
int |
GetConnectionStatus()
Get host connection status |
int |
GetCursorColumn()
Get column position of cursor |
int |
GetCursorRow()
Get row position of cursor |
java.lang.String |
GetFieldText(int maxBytes)
Get the text from the current screen field |
int |
GetForeColor()
Get foreground color at currrent cursor position |
boolean |
getKeyboardLocked()
Get keyboard locked status |
java.lang.String |
getKeyName(char key,
boolean shift,
boolean ctl,
boolean alt,
boolean ext)
|
int |
GetMsgArrivedCount()
Get count of messages received from the host since the last time this check was made |
boolean |
getOptAutoAlign()
Get AutoAlign setting |
boolean |
getOptAutoReconnect()
Get AutoReconnect setting |
boolean |
getOptBackspaceNonDelete()
Get BackspaceNonDelete setting |
boolean |
getOptBlockModeSelect()
Get BlockModeSelect setting |
boolean |
getOptEraseOnDisconnect()
Get EraseOnDisconnect setting |
boolean |
getOptFlashingCursor()
Get FlashingCursor setting |
boolean |
getOptFontBold()
Get FontBold option |
boolean |
getOptFontItalic()
Get FontItalic option |
boolean |
getOptForceUpperCase()
Get ForceUpperCase option |
boolean |
getOptFullErase()
Get FullErase option |
boolean |
getOptIgnoreDollarMsgs()
Get IgnoreDollarMsgs option |
boolean |
getOptInsertMode()
Get InsertMode option |
boolean |
getOptInsertModeInDisp()
Get InsertModeInDisp option |
boolean |
getOptNoCursorWrap()
Get NoCursorWrap option |
boolean |
getOptNoFlashers()
Get NoFlashers option |
boolean |
getOptNonDestructSpace()
Get NonDestructiveSpace option |
boolean |
getOptPassThruPrinter()
Get PassThruPrinter option |
boolean |
getOptPrintAll()
Get PrintAll option |
boolean |
getOptShowAllCharacters()
Get ShowAllCharacters option |
boolean |
getOptSmoothScroll()
Get smooth scroll option |
boolean |
getOptUnderlineCursor()
Get underline cursor option |
int |
getPageNumber()
Get current screen page number |
int |
getPrtEolAction()
Get print end of line action |
java.lang.String |
getPrtFontName()
Get printer font name |
int |
getPrtFontSize()
Get printer font size |
int |
getPrtLinesPerPage()
Get lines per page setting |
boolean |
getPrtOnFormFeed()
Get PrtOnFormFeed setting |
boolean |
getPrtOnPages()
Get PrtOnPages setting |
boolean |
getPrtOnString()
Get PrtOnString setting |
boolean |
getPrtOnTimeout()
Get PrtOnTimeout option |
boolean |
getPrtOptIgnoreFF()
Get PrtOptIgnoreFF option |
boolean |
getPrtOptIgnoreHostPrint()
Get PrtOptIgnoreHostPrint setting |
boolean |
getPrtOptLandscape()
Get landscape print option |
boolean |
getPrtOptMetricMargins()
|
boolean |
getPrtOptNoBlankPages()
Get PrtOptNoBlankPages option |
boolean |
getPrtOptNoFFafterPrint()
Get PrtOptNoFFafterPrint setting |
boolean |
getPrtOptNoPrintDialog()
Get PrtNoPrintDialog option |
boolean |
getPrtOptPassthruFilterDC2()
Get PassthruFilterDC2 option |
boolean |
getPrtOptPassthruPrintEol()
Get PassthruPrintEol option |
boolean |
getPrtOptPassthruPrintEscapes()
Get PassthruPrintEscapes option |
boolean |
getPrtOptPrintToFile()
Get current PrintToFile setting |
boolean |
getPrtOptShadowPrintFile()
|
boolean |
getPrtOptStripTabs()
Get PrtOptStripTabs option |
boolean |
getPrtOptTranslate()
Get PrtOptTranslate option |
boolean |
getPrtOptTrashAfterFF()
Get PrtOptTrashAfterFF option |
java.lang.String |
getPrtPrinterName()
Get current printer name |
boolean |
getPrtPrintFileFF()
Get PrintFileFF option |
java.lang.String |
getPrtTranslateFileName()
Get printer translation file name |
int |
getPrtWhenPages()
Get PrtWhenPages setting |
int |
getPrtWhenSeconds()
Get PrtWhenSecondss setting |
java.lang.String |
getPrtWhenString()
Get PrtWhenString setting |
int |
getPrtXparAction()
Get XPAR action code |
java.lang.String |
GetRowText(int row,
int startCol,
int columns)
Get the text from the specified screen row |
boolean |
getStatusMsgWait()
Get MsgWait status |
int |
getTermAutoFont()
AutoFont sizing |
int |
getTermBackColor(int fieldType)
Get configured background color for specified field type |
int |
getTermColumns()
Get number of screen columns |
java.lang.String |
getTermFontName()
Get current font name |
int |
getTermFontSize()
Get font size |
int |
getTermForeColor(int fieldType)
Get configured foreground color for specified field type |
int |
GetTerminalStatus()
Get T27 terminal status |
java.lang.String |
getTermLastHost()
Get the name of the last host to which a connection was made |
java.lang.String |
getTermName()
Get terminal name |
int |
getTermNetworkChar()
Get NetworkChar setting |
int |
getTermPages()
Get number of screen pages |
int |
getTermRows()
Get number of screen rows |
int |
getTermType()
Get terminal type |
int |
getTermXmitMode()
Get terminal xmit mode |
java.lang.String |
GetText(int startRow,
int startCol,
int endRow,
int endCol)
Get the text from the specified screen row(s) |
short[] |
GetTextArray(int startRow,
int startCol,
int endRow,
int endCol)
Get the text from the specified screen row(s) |
void |
InputAttention()
Call this method to simulate an attention message received from the host |
void |
InputData(byte[] pInputData,
int byteCount)
Call this method with a string that represents terminal datstream as received from the host |
void |
InsertInDisplay()
Insert a space and move all following unprotected screen data forward one position |
void |
InsertInLine()
Insert a space and move all following unprotected row data forward one position |
void |
InsertLine()
Insert a new line by moving screen down from current row |
void |
LineSwapDown()
Swap current row with the row below |
void |
LineSwapUp()
Swap current row with the row above |
void |
MoveBackspace()
Backspace |
void |
MoveBackTab()
Back tab |
void |
MoveDown()
Move cursor down |
void |
MoveHome()
Move to home position |
void |
MoveLeft()
Move cursor left |
void |
MoveReturn()
Move to first unprotected position on next row |
void |
MoveRight()
Move cursor right |
void |
MoveScrollUp()
Scroll the screen up |
void |
MoveTab()
Tab forward |
void |
MoveTo(int row,
int col)
Move to specified row and column |
void |
MoveToEOF()
Move to end of field |
void |
MoveToLineBegin()
Move to beginning of current row |
void |
MoveToLineEnd()
Move to end of text on current row |
void |
MoveToUnprotected()
Move forward to unprotected data |
void |
MoveUp()
Move cursor up |
void |
NextPage()
Display next page |
void |
NextRecall()
Display next command recall string at cursor position |
void |
Paste()
Paste text from the clipboard to the screen at the current cursor position |
void |
PreviousPage()
Display previous page |
void |
PreviousRecall()
Display previous command recall string at cursor position |
void |
PrintCancel()
Abort any current printing |
void |
PrintEject()
Terminate any current printing |
void |
PrintFromSOE()
Print the screen from the SOE to the cursor position |
void |
PrintPageSetup()
Display print set up dialog |
void |
PrintScreen()
Print the screen |
void |
PrintSelected()
Print the currently selected screen text |
void |
PrintToFile()
Begin printing to file |
boolean |
RemoveKey(int cmd,
char key,
boolean shift,
boolean ctl,
boolean alt,
boolean ext)
|
void |
removeQTermEventListener(screen.QTermEventListener listener)
Remove the listener for list of objects that are listening for events. |
void |
Reset()
Reset the terminal screen |
void |
ResumeInput()
Allow host input to resume if previously stoppped by StopInput |
void |
RollDown()
Roll screen down one line and move bottom row to the top |
void |
RollUp()
Roll screen up one line and move top row to the bottom |
void |
SelectDown()
Emulate drag select down |
void |
SelectLeft()
Emulate drag select to the left |
void |
SelectRight()
Emulate drag select to the right |
void |
SelectUp()
Emulate drag select up |
int |
SendFkey(int keyNumber)
Send a function key to the host |
void |
SendMsgWait()
Send a MsgWait to the host |
int |
SendText(java.lang.String pTextString)
Send string to host without displaying it on the screen |
void |
setOptAutoAlign(boolean bNewValue)
Set AutoAlign, if true then the screen will be scrolled if necessary to display the current cursor position |
void |
setOptAutoReconnect(boolean bNewValue)
Set AutoReconnect, if true then the tcp connection will be re-attempted if the host disconnects |
void |
setOptBackspaceNonDelete(boolean bNewValue)
Set BackspaceNonDelete option, if true this allows backspacing without deleting characters (functions like cursor left) |
void |
setOptBlockModeSelect(boolean bNewValue)
Set BlockModeSelect option to drag select in block mode |
void |
setOptEraseOnDisconnect(boolean bNewValue)
Set EraseOnDisconnect to erase the screen when disconnected from the host |
void |
setOptFireScreenUpdates(boolean bNewValue)
Set FireScreenUpdates to fire ScreenUpdate events, note that ScreenUpdate events are always fired if there is no graphics context (the screen is hidden) |
void |
setOptFlashingCursor(boolean bNewValue)
Set FlashingCursor option to make the screen cursor flash |
void |
setOptFontBold(boolean bNewValue)
Set FontBold option to display screen text in bold font |
void |
setOptFontItalic(boolean bNewValue)
Set FontItalic option to display screen text in italic font |
void |
setOptForceUpperCase(boolean bNewValue)
Set ForceUpperCase option to force all keyboard input to upper case |
void |
setOptFullErase(boolean bNewValue)
Set FullErase option to clear all protected and unprotected data when using clear screen |
void |
setOptIgnoreDollarMsgs(boolean bNewValue)
Set IgnoreDollarMsgs option to ignore network control messages that start with $$ (eg $$OPEN) |
void |
setOptInsertMode(boolean bNewValue)
Set InsertMode option, to move row characters to the right when typing |
void |
setOptInsertModeInDisp(boolean bNewValue)
Set InsertModeInDisp option, to move all characters to the right when typing |
void |
setOptNoCursorWrap(boolean bNewValue)
Set NoCursorWrap option, to prevent cursor at end of screen wrapping to the home position |
void |
setOptNoFlashers(boolean bNewValue)
Set NoFlashers option, to inhibit any flashing fields |
void |
setOptNonDestructSpace(boolean bNewValue)
Set NonDestructiveSpace option, to not delete characters when pressing the space bar (acts like cursor right) |
void |
setOptPassThruPrinter(boolean bNewValue)
Set PassThruPrinter option, to make the terminal function like a passthru printer |
void |
setOptPrintAll(boolean bNewValue)
Set PrintAll, true if every received message is to be printed |
void |
setOptShowAllCharacters(boolean bNewValue)
Set ShowAllCharacters option, to display characters that are normally hidden such as tabs and CRs |
void |
setOptSmoothScroll(boolean bNewValue)
Set smooth scroll |
void |
setOptUnderlineCursor(boolean bNewValue)
Set underline cursor option |
void |
setPrtEolAction(int prtEolAction)
Set PrtEolAction to control the printing action at the end of a line |
void |
setPrtFontName(java.lang.String lpszNewValue)
Set printer font name |
void |
setPrtFontSize(int nNewValue)
Set printer font size |
void |
setPrtLinesPerPage(int nNewValue)
Set lines per page, set to zero to allow automatic caLculation |
void |
setPrtOnFormFeed(boolean bNewValue)
Set PrtOnFormFeed option to begin printing when a form feed character is received |
void |
setPrtOnPages(boolean bNewValue)
Set PrtOnPages option to start printing after a specified number of pages have been spooled |
void |
setPrtOnString(boolean bNewValue)
Set PrtOnString option to start printing when a specified string is received |
void |
setPrtOnTimeout(boolean bNewValue)
Set PrtOnTimeout to start printing after a specified time of no print data |
void |
setPrtOptIgnoreFF(boolean bNewValue)
Set PrtOptIgnoreFF to ignore FF characters when printing |
void |
setPrtOptIgnoreHostPrint(boolean bNewValue)
Set PrtOptIgnoreHostPrint to ignore all host printing |
void |
setPrtOptLandscape(boolean bNewValue)
Set landscape print option |
void |
setPrtOptMetricMargins(boolean bNewValue)
|
void |
setPrtOptNoBlankPages(boolean bNewValue)
Set PrtOptNoBlankPagesto skip any blank pages |
void |
setPrtOptNoFFafterPrint(boolean bNewValue)
Set PrtOptNoFFafterPrint to keep the print spool open |
void |
setPrtOptNoPrintDialog(boolean bNewValue)
Set PrtNoPrintDialog to inhibit display of the print dialog |
void |
setPrtOptPassthruFilterDC2(boolean bNewValue)
Set PassthruFilterDC2 option |
void |
setPrtOptPassthruPrintEol(boolean bNewValue)
Set PassthruPrintEol option |
void |
setPrtOptPassthruPrintEscapes(boolean bNewValue)
Set PassthruPrintEscapes option |
void |
setPrtOptPrintToFile(boolean printToFile)
Set PrintToFile |
void |
setPrtOptShadowPrintFile(boolean bNewValue)
|
void |
setPrtOptStripTabs(boolean bNewValue)
Set PrtOptStripTabs to ignore yabs when printing |
void |
setPrtOptTranslate(boolean bNewValue)
Set PrtOptTranslateto enable print data translation |
void |
setPrtOptTrashAfterFF(boolean bNewValue)
Set PrtOptTrashAfterFF to ignore all data after FF |
void |
setPrtPrinterName(java.lang.String lpszNewValue)
Set printer name |
void |
setPrtPrintFileFF(boolean bNewValue)
Set PrintFileFF option to write received form feeds to file when printing to file |
void |
setPrtTranslateFileName(java.lang.String lpszNewValue)
Set printer translation file name to translate printed characters |
void |
setPrtWhenPages(int nNewValue)
Set page count when start printing |
void |
setPrtWhenSeconds(int nNewValue)
Set number of seconds of no print activity before printing is to start |
void |
setPrtWhenString(java.lang.String lpszNewValue)
Set string to check whether to start on printing |
void |
setPrtXparAction(int nNewValue)
Set XPAR action code |
void |
setTermAutoFont(int autoFont)
Set auto font sizing |
void |
setTermBackColor(int fieldType,
int color,
boolean overrideHostColor)
Set configured background color for specified field type |
void |
setTermColumns(int columns)
Set number of screen columns |
void |
setTermFontName(java.lang.String fontName)
Set screen font name |
void |
setTermFontSize(int size)
Set font size |
void |
setTermForeColor(int fieldType,
int color,
boolean overrideHostColor)
Set configured foreground color for specified field type |
void |
setTermLastHost(java.lang.String host)
Set the name of the last host to which a connection was made |
void |
setTermName(java.lang.String termName)
Set terminal name as required by host |
void |
setTermNetworkChar(int networkChar)
Set NetworkChar character, used to recognize network message susch as $$OPEN, the default character is a $ sign |
void |
setTermPages(int pages)
Set number of screen pages |
void |
setTermRows(int rows)
Set number of screen rows |
void |
setTermType(int termType)
Set terminal type |
void |
setTermXmitMode(int xmitMode)
Set terminal xmit mode |
int |
StartTrace(java.lang.String fileName)
Start tracing events to specified file |
void |
StopInput()
Temporarily suspend host input |
void |
StopTrace()
Stop tracing |
void |
SwitchPage(int pageNum)
Switch terminal page |
void |
ToggleTrace(java.lang.String fileName)
Toggle tracing on/off |
void |
UnlockKeyboard()
Unlock keyboard |
boolean |
Wait(int timeout)
Wait for a message to arrive from the host |
boolean |
WaitConnected(boolean needConnected,
int timeout)
Wait to connect or to disconnect |
boolean |
WaitScreenText(int row,
int col,
java.lang.String text,
int timeout)
Wait for specified text at the given screen position |
void |
Xmit()
Transmit screen to host |
| Methods inherited from class screen.QScreen |
actionPerformed, DumpScreen, OnKey, OnMouseDragged, OnMousePressed, OnMouseReleased, paint, processEvent, run, scrLogCommand, scrLogCommand, start, stop, Timer |
| Methods inherited from class java.awt.Canvas |
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public QScreenTerm()
| Method Detail |
public void addQTermEventListener(screen.QTermEventListener listener)
listener - QTermEventListenerpublic void removeQTermEventListener(screen.QTermEventListener listener)
listener - QTermEventListenerpublic int CaptureStart(java.lang.String captureFileName)
public void CaptureStop()
public void ClearCapture()
public int Connect(java.lang.String hostDefn)
hostDefn - Host definition string
where the hostDefn is defined as:
hostname,appname,IPadr,port,transport(T),csuname
hostname = a name for reference only
appname = the host app name (eg TIP), anything for T27
IPadr = either an IP address or a domain name
port = tcp port number (eg 102 for UTS, 23 for T27)
transport = typically T(tcp) or D(dcp) for older UTS systems, not needed for T27
csuname = CSU name (eg TIPCSU or RSDCSU), not needed for T27
public void Copy()
public void CopyTable()
public void Cut()
public void DeleteInDisplay()
public void DeleteInLine()
public void DeleteLine()
public void Disconnect()
public void Display(java.lang.String pTextString)
pTextString - Text string to displaypublic void DisplayAbout()
DisplayAbout in class screen.QScreenpublic void DisplayHelp()
DisplayHelp in class screen.QScreenpublic void DisplayFF()
public void DisplayLF()
public void DisplayScroll(java.lang.String text,
int row,
boolean scrollBefore,
boolean scrollAfter,
boolean scrollUp)
text - String to displayrow - Scroll row numberscrollBefore - True/FalsescrollAfter - True/FalsescrollUp - True/Falsepublic void DisplaySOE()
public void DisplayTab()
public void DuplicateLine()
public void EraseCharacter()
public void EraseDisplay(boolean eraseCompletely)
eraseCompletely - True/Falsepublic void EraseEOF()
public void EraseField()
public void EraseLine()
public void EraseUnprotected()
public int FindText(java.lang.String pTextString)
pTextString - Text to search for
public int GetAttribute()
atEntryMask = 0x0003 // entry mask (none,alpha,num,prot)
atMunprot = 0x00 // - unprotected
atMalpha = 0x01 // - alpha only
atMnumeric = 0x02 // - numeric only
atMprotect = 0x03 // - protected field
atRight = 0x0004 // right justified field
atFlash = 0x0008 // flashing field
atOff = 0x0010 // video off
atReverse = 0x0020 // reverse video
atNoChange = 0x0040 // not a changed field
atNoTab = 0x0080 // no tab stop here
atColSep = 0x0100 // column separator
atEmProt = 0x0200 // special emphasis protect
atUnder = 0x0400 // underscore
atStrike = 0x0800 // strike through
atSOprot = 0x1000 // SO protected (or T27 prot xmit)
atFull = 0x2000 // right justified field is full
atIntensity = 0x4000 // alternate intensity
atFCC = 0x8000 // there's an FCC here
public int GetAttribute(int row,
int col)
row - Row numbercol - Column number
atEntryMask = 0x0003 // entry mask (none,alpha,num,prot)
atMunprot = 0x00 // - unprotected
atMalpha = 0x01 // - alpha only
atMnumeric = 0x02 // - numeric only
atMprotect = 0x03 // - protected field
atRight = 0x0004 // right justified field
atFlash = 0x0008 // flashing field
atOff = 0x0010 // video off
atReverse = 0x0020 // reverse video
atNoChange = 0x0040 // not a changed field
atNoTab = 0x0080 // no tab stop here
atColSep = 0x0100 // column separator
atEmProt = 0x0200 // special emphasis protect
atUnder = 0x0400 // underscore
atStrike = 0x0800 // strike through
atSOprot = 0x1000 // SO protected (or T27 prot xmit)
atFull = 0x2000 // right justified field is full
atIntensity = 0x4000 // alternate intensity
atFCC = 0x8000 // there's an FCC here
public short[] GetAttributes(int startRow,
int startCol,
int endRow,
int endCol)
startRow - Start rowstartCol - Start columnendRow - End rowendCol - End column
public byte[] GetColors(int startRow,
int startCol,
int endRow,
int endCol)
startRow - Start rowstartCol - Start columnendRow - End rowendCol - End column
public int GetForeColor()
public int GetBackColor()
public int GetCursorRow()
public int GetCursorColumn()
public int GetConnectionStatus()
ctsDisconnected = 0 ctsConnecting = 1 ctsConnected = 2 tsDisconnecting = 3
public int GetTerminalStatus()
0 = Rcv 1 = Local 2 = xmit
public boolean getKeyboardLocked()
public int GetMsgArrivedCount()
public java.lang.String GetFieldText(int maxBytes)
maxBytes - maximum number of bytes to return
public java.lang.String GetRowText(int row,
int startCol,
int columns)
row - Row numberstartCol - Start columncolumns - Number of columns
public java.lang.String GetText(int startRow,
int startCol,
int endRow,
int endCol)
startRow - Start rowstartCol - Start columnendRow - End rowendCol - End column
public short[] GetTextArray(int startRow,
int startCol,
int endRow,
int endCol)
startRow - Start rowstartCol - Start columnendRow - End rowendCol - End column
public void InputData(byte[] pInputData,
int byteCount)
pInputData - Input databyteCount - Number of bytespublic void InputAttention()
public void InsertInDisplay()
public void InsertInLine()
public void InsertLine()
public void LineSwapDown()
public void LineSwapUp()
public void MoveBackspace()
public void MoveBackTab()
public void MoveDown()
public void MoveHome()
public void MoveLeft()
public void MoveReturn()
public void MoveRight()
public void MoveTo(int row,
int col)
row - Row numbercol - Column numberpublic void MoveToEOF()
public void MoveUp()
public void MoveScrollUp()
public void MoveTab()
public void MoveToLineEnd()
public void MoveToLineBegin()
public void MoveToUnprotected()
public void NextPage()
public void NextRecall()
public void PreviousPage()
public void PreviousRecall()
public void Paste()
public void PrintScreen()
public void PrintFromSOE()
public void PrintSelected()
public void PrintEject()
public void PrintCancel()
public void PrintToFile()
public void PrintPageSetup()
public void Reset()
public void ResumeInput()
public void RollDown()
public void RollUp()
public void SelectLeft()
public void SelectRight()
public void SelectDown()
public void SelectUp()
public int SendFkey(int keyNumber)
keyNumber - Function key number (1-22)
public void SendMsgWait()
public int SendText(java.lang.String pTextString)
pTextString - Text string
public int StartTrace(java.lang.String fileName)
fileName - Full or relative file parh
public void StopTrace()
public void SwitchPage(int pageNum)
pageNum - Required page numberpublic void ToggleTrace(java.lang.String fileName)
ToggleTrace in class screen.QScreenfileName - Trace file name, leave blank for defaultpublic void StopInput()
public void UnlockKeyboard()
public void Xmit()
public int getTermAutoFont()
public void setTermAutoFont(int autoFont)
autoFont - Non-zero for auto font sizingpublic int getTermColumns()
public void setTermColumns(int columns)
columns - Number of screen columnspublic int getTermFontSize()
public void setTermFontSize(int size)
size - Font sizepublic java.lang.String getTermLastHost()
public void setTermLastHost(java.lang.String host)
host - Host namepublic java.lang.String getTermName()
public void setTermName(java.lang.String termName)
termName - Terminal namepublic java.lang.String getTermFontName()
public void setTermFontName(java.lang.String fontName)
fontName - Font name (must be a fixed width font)public int getTermForeColor(int fieldType)
fieldType - The field type indexCOLOR_FIELD_UNPROT = 0 COLOR_FIELD_UNPROT_LOW = 1 COLOR_FIELD_ALPHA = 2 COLOR_FIELD_ALPHA_LOW = 3 COLOR_FIELD_NUM = 4 COLOR_FIELD_NUM_LOW = 5 COLOR_FIELD_PROT = 6 COLOR_FIELD_PROT_LOW = 7 COLOR_FIELD_PROTXMIT = 8 COLOR_FIELD_SECURE = 9 COLOR_FIELD_SECURE_LOW = 10 COLOR_FIELD_RIGHT = 11 COLOR_FIELD_RIGHT_LOW = 12 COLOR_FIELD_REVERSE = 13 COLOR_FIELD_REVERSE_LOW = 14 COLOR_FIELD_FLASH = 15 COLOR_FIELD_FLASH_LOW = 16 COLOR_FIELD_STATUSLINE = 17 COLOR_FIELD_UNDERLINE = 18 COLOR_FIELD_UNDERLINE_LOW = 19 COLOR_FIELD_UNDERLINE_FLASH = 20 COLOR_FIELD_UNDERLINE_FLASH_LOW = 21 COLOR_FIELD_PROT_UNDERLINE = 22 COLOR_FIELD_PROT_UNDERLINE_LOW = 23 COLOR_FIELD_PROT_REVERSE_FLASH = 24 COLOR_FIELD_PROT_REVERSE_FLASH_LOW = 25
COLOR_BLACK = 0 COLOR_RED = 1 COLOR_GREEN = 2 COLOR_YELLOW = 3 COLOR_BLUE = 4 COLOR_MAGENTA = 5 COLOR_CYAN = 6 COLOR_WHITE = 7 COLOR_BLACK_ALT = 8 COLOR_RED_ALT = 9 COLOR_GREEN_ALT = 10 COLOR_YELLOW_ALT = 11 COLOR_BLUE_ALT = 12 COLOR_MAGENTA_ALT = 13 COLOR_CYAN_ALT = 14 COLOR_WHITE_ALT = 15
public void setTermForeColor(int fieldType,
int color,
boolean overrideHostColor)
fieldType - The field type index (see getTermForeColor)color - The color index (see getTermForeColor)overrideHostColor - True to override host colors for this field typepublic int getTermBackColor(int fieldType)
fieldType - The field type index (see getTermForeColor)
public void setTermBackColor(int fieldType,
int color,
boolean overrideHostColor)
fieldType - The field type index (see getTermForeColor)color - The color index (see getTermForeColor)overrideHostColor - True to override host colors for this field typepublic int getTermPages()
public void setTermPages(int pages)
pages - Number of screen pagespublic int getTermRows()
public void setTermRows(int rows)
rows - Number of screen rowspublic boolean getStatusMsgWait()
public int getTermType()
public void setTermType(int termType)
termType - Terminal type (UTS20=0, UTS40=1, U200=2, U300=3, UTS60=4)
(TD830ascii=0, TD830=1, TD830ndl=2)public int getTermXmitMode()
public void setTermXmitMode(int xmitMode)
xmitMode - The transmit modeCPAGE_XMIT_VAR = 0 // transmit variable (unprotected) CPAGE_XMIT_CHAN = 1 // transmit changed CPAGE_XMIT_ALL = 2 // transmit all
public boolean getOptAutoReconnect()
public void setOptAutoReconnect(boolean bNewValue)
bNewValue - True if AutoConnect is requiredpublic static java.lang.String getAboutInfo()
public boolean getOptAutoAlign()
public void setOptAutoAlign(boolean bNewValue)
bNewValue - True if AutoAlign requiredpublic boolean getOptBackspaceNonDelete()
public void setOptBackspaceNonDelete(boolean bNewValue)
bNewValue - True to set BackspaceNonDeletepublic boolean getOptBlockModeSelect()
public void setOptBlockModeSelect(boolean bNewValue)
bNewValue - True if BlockModeSelectpublic boolean getOptEraseOnDisconnect()
public void setOptEraseOnDisconnect(boolean bNewValue)
bNewValue - True if EraseOnDisconnectpublic void setOptFireScreenUpdates(boolean bNewValue)
bNewValue - True to set FireScreenUpdatespublic boolean getOptFlashingCursor()
public void setOptFlashingCursor(boolean bNewValue)
bNewValue - True to set FlashingCursorpublic boolean getOptFontBold()
public void setOptFontBold(boolean bNewValue)
bNewValue - True to set FontBoldpublic boolean getOptFontItalic()
public void setOptFontItalic(boolean bNewValue)
bNewValue - True to set FontItalicpublic boolean getOptForceUpperCase()
public void setOptForceUpperCase(boolean bNewValue)
bNewValue - True to set ForceUpperCasepublic boolean getOptFullErase()
public void setOptFullErase(boolean bNewValue)
bNewValue - True True to set FullErasepublic boolean getOptIgnoreDollarMsgs()
public void setOptIgnoreDollarMsgs(boolean bNewValue)
bNewValue - True to set IgnoreDollarMsgspublic boolean getPrtOptIgnoreHostPrint()
public void setPrtOptIgnoreHostPrint(boolean bNewValue)
bNewValue - True to set PrtOptIgnoreHostPrintpublic boolean getOptInsertMode()
public void setOptInsertMode(boolean bNewValue)
bNewValue - True to set InsertModepublic boolean getOptInsertModeInDisp()
public void setOptInsertModeInDisp(boolean bNewValue)
bNewValue - True to set InsertModeInDisppublic boolean getOptNoCursorWrap()
public void setOptNoCursorWrap(boolean bNewValue)
bNewValue - True to set NoCursorWrappublic boolean getOptNoFlashers()
public void setOptNoFlashers(boolean bNewValue)
bNewValue - True to set NoFlasherspublic boolean getOptNonDestructSpace()
public void setOptNonDestructSpace(boolean bNewValue)
bNewValue - True to set NonDestructiveSpacepublic boolean getOptPassThruPrinter()
public void setOptPassThruPrinter(boolean bNewValue)
bNewValue - True to set PassThruPrinterpublic boolean getOptPrintAll()
public void setOptPrintAll(boolean bNewValue)
bNewValue - True to set PrintAllpublic boolean getOptShowAllCharacters()
public void setOptShowAllCharacters(boolean bNewValue)
bNewValue - True to set ShowAllCharacterspublic boolean getOptSmoothScroll()
public void setOptSmoothScroll(boolean bNewValue)
bNewValue - True for smooth scrollpublic boolean getOptUnderlineCursor()
public void setOptUnderlineCursor(boolean bNewValue)
bNewValue - True for underline cursor, else block cursorpublic int getPageNumber()
public int getPrtEolAction()
public void setPrtEolAction(int prtEolAction)
prtEolAction - 0 = none 1 = CRLF 2 = LF
public java.lang.String getPrtFontName()
public void setPrtFontName(java.lang.String lpszNewValue)
lpszNewValue - Printer font namepublic int getPrtFontSize()
public void setPrtFontSize(int nNewValue)
nNewValue - Printer font sizepublic int getPrtLinesPerPage()
public void setPrtLinesPerPage(int nNewValue)
nNewValue - Lines per pagepublic boolean getPrtOnFormFeed()
public void setPrtOnFormFeed(boolean bNewValue)
bNewValue - True to set PrtOnFormFeedpublic boolean getPrtOnPages()
public void setPrtOnPages(boolean bNewValue)
bNewValue - True to set PrtOnPagespublic boolean getPrtOnString()
public void setPrtOnString(boolean bNewValue)
bNewValue - True to set PrtOnStringpublic boolean getPrtPrintFileFF()
public void setPrtPrintFileFF(boolean bNewValue)
bNewValue - True to set PrintFileFFpublic java.lang.String getPrtPrinterName()
public void setPrtPrinterName(java.lang.String lpszNewValue)
lpszNewValue - Printer namepublic java.lang.String getPrtTranslateFileName()
public void setPrtTranslateFileName(java.lang.String lpszNewValue)
lpszNewValue - File namepublic int getPrtWhenPages()
public void setPrtWhenPages(int nNewValue)
nNewValue - Number of pagespublic int getPrtWhenSeconds()
public void setPrtWhenSeconds(int nNewValue)
nNewValue - Number of secondspublic java.lang.String getPrtWhenString()
public void setPrtWhenString(java.lang.String lpszNewValue)
lpszNewValue - String to checkpublic int getPrtXparAction()
public void setPrtXparAction(int nNewValue)
nNewValue - XPAR action codepublic boolean getPrtOptIgnoreFF()
public void setPrtOptIgnoreFF(boolean bNewValue)
bNewValue - True if PrtOptIgnoreFF is setpublic boolean getPrtOptLandscape()
public void setPrtOptLandscape(boolean bNewValue)
bNewValue - landscape printpublic boolean getPrtOptMetricMargins()
public void setPrtOptMetricMargins(boolean bNewValue)
bNewValue - public boolean getPrtOptNoFFafterPrint()
public void setPrtOptNoFFafterPrint(boolean bNewValue)
bNewValue - True to set PrtOptNoFFafterPrintpublic boolean getPrtOptNoBlankPages()
public void setPrtOptNoBlankPages(boolean bNewValue)
bNewValue - True to set PrtOptNoBlankPagespublic boolean getPrtOptNoPrintDialog()
public boolean getPrtOptPassthruPrintEscapes()
public boolean getPrtOptPassthruFilterDC2()
public boolean getPrtOptPassthruPrintEol()
public void setPrtOptNoPrintDialog(boolean bNewValue)
bNewValue - True to set PrtNoPrintDialogpublic void setPrtOptPassthruPrintEscapes(boolean bNewValue)
bNewValue - True to send escape characters to the printer in Passthru modepublic void setPrtOptPassthruFilterDC2(boolean bNewValue)
bNewValue - True to flter out DC2 characters in Passthru modepublic void setPrtOptPassthruPrintEol(boolean bNewValue)
bNewValue - True to process EOL options in Passthru modepublic boolean getPrtOptShadowPrintFile()
public void setPrtOptShadowPrintFile(boolean bNewValue)
bNewValue - public boolean getPrtOptStripTabs()
public void setPrtOptStripTabs(boolean bNewValue)
bNewValue - True to set PrtOptStripTabspublic boolean getPrtOptTranslate()
public void setPrtOptTranslate(boolean bNewValue)
bNewValue - True to set PrtOptTranslatepublic boolean getPrtOptTrashAfterFF()
public void setPrtOptTrashAfterFF(boolean bNewValue)
bNewValue - True to set PrtOptTrashAfterFFpublic boolean getPrtOptPrintToFile()
public void setPrtOptPrintToFile(boolean printToFile)
printToFile - True if to print to filepublic boolean getPrtOnTimeout()
public void setPrtOnTimeout(boolean bNewValue)
bNewValue - True to set PrtOnTimeout
public void AddKey(int cmd,
char key,
boolean shift,
boolean ctl,
boolean alt,
boolean ext)
public boolean RemoveKey(int cmd,
char key,
boolean shift,
boolean ctl,
boolean alt,
boolean ext)
public int FindKey(int key,
boolean shift,
boolean ctl,
boolean alt,
boolean ext)
public java.lang.String getCmdName(int cmd)
public java.lang.String getKeyName(char key,
boolean shift,
boolean ctl,
boolean alt,
boolean ext)
public boolean WaitScreenText(int row,
int col,
java.lang.String text,
int timeout)
row - Start rowcol - Start coltext - Text to wait fortimeout - Miliseconds to wait
public boolean WaitConnected(boolean needConnected,
int timeout)
needConnected - True if waiting to connect else waiting to disconnecttimeout - Miliseconds to waitpublic boolean Wait(int timeout)
timeout - Miliseconds to waitpublic int getTermNetworkChar()
public void setTermNetworkChar(int networkChar)
networkChar - The character to be used
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||