LogWeb V3 Default Emulator (AJAX based)

Class lwk

Object
   |
   +--lwk

class lwk


Defines the most important keyboard and menu functions. These are mainly drivers to low level routines, or "lwk macros" calling lower level lwk routines.

The following functions are local functions for block oriented mainframe terminal families IBM 3270, IBM 5250 and FSC 9750. Only some of them are supported or emulated for character based Unix terminals as well:

The following functions are supported for both types of terminals (block oriented mainframe, and character based Unix):
Version:

Author: j.fellner@logics.de
Defined in lwk.js


Nested Class Summary
<static class> lwk.gui
 
Field Summary
<static>  {Array} invalidChars
          The user supplied array of invalid characters for IBM 5250.
<static>  {Object} userkeys
          The user supplied keyboard mapping table for IBM 5250.
 
Constructor Summary
lwk ()
            Defines the most important keyboard and menu functions.
 
Method Summary
<static> Object bean(nam, val)
           Bean wrapper for the specified variable.
<static> void BEL()
           Output BEL.
<static> void copy(<boolean> always)
           Copies the currently selected text to the Clipboard.
<static> void cut()
           Cuts currently selected text to Clipboard.
<static> void deleteBackspace()
           If possible: Deletes the previous char and positions back.
<static> void deleteChar()
           Deletes the current character, or the current selection.
<static> void deleteField()
           Deletes all chars of the current Field starting with first char.
<static> void deleteFieldEnd()
           Deletes all chars from current position in field up to the end of field.
<static> void deleteFields()
           Deletes all input Fields.
<static> void deleteSelection()
           Deletes contents of input fields contained in current selection.
<static> void eval()
           Prompts for JS source and evaluates it.
<static> void goCharDown()
           Positions the cursor one char down.
<static> void goCharFirst()
           Positions the cursor to the first char of the current Field.
<static> void goCharLast()
           Positions the cursor to the last char of the current field.
<static> void goCharLeft()
           Positions the cursor one char left.
<static> void goCharRight()
           Positions the cursor one char right.
<static> void goCharUp()
           Position the cursor one char up.
<static> void goFieldFirst()
           Positions the cursor the start of the first input Field.
<static> void goFieldLast()
           Positions the cursor the start of the last input Field.
<static> void goFieldLeft()
           Positions the cursor to the start of this or of the previous input field.
<static> void goFieldRight()
           Positions the cursor to the start of the next input field.
<static> void goLineFirst()
           Positions the cursor to the start of the first input Field in current line.
<static> void goLineNext()
           Positions the cursor to the start of the first input Field below the current line.
<static> void goLinePrev()
           Positions the cursor to the start of the first input Field above the current line.
<static> void goWordLeft()
           Positions the cursor one char left.
<static> void goWordRight()
           Positions the cursor one word to right.
<static> void hideSelect()
           Hides selected text, if any.
<static> boolean hostLocked()
           Checks if host status is locked.
<static> void ignoreKey()
           Ignores this key.
<static> void incrChar(<int> row, <int> col)
           Increments the current position by specified row and col values.
<static> lwh.Field incrField(<int> incr)
           Sets cursor to the start of the next/previous input field.
<static> void incrSelect(<int> row, <int> col, <boolean> isBlock)
           Worker: Selects text by specified row and col values.
<static> void inputChar(<char> str)
           Enters the specified character(s) into the current input field.
<static> lwh.Field inputCheck(<boolean> keep)
           Checks if current field is input.
<static> void inputField(<char> str)
           Enters the specified character(s) into the current input field.
<static> void inputScreen(<String> text, <boolean> masked, <boolean> nl, <boolean> block)
           Enters the specified text starting at the current field.
<static> boolean insert(<boolean_null> val)
           Toggles or sets insert mode.
<static> int logLevel(<int> value)
           int getter/setter for the lw logLeveL.
<static> void menuMouse(menu)
           Shows context Menu at current mouse position.
<static> void message(<String> text)
           Shows a user message to the user.
<static> void messageBEL()
           Output host generated BEL.
<static> void paste(<boolean> masked, <boolean> nl, <boolean> block)
           Paste from Clipboard.
<static> void pos(<int_Field> row, <int> col)
           Sets cursor to specified host position (row, col) or to host Field.
<static> void posMouse(<int> opt)
           Mouse event function: Sets cursor to current mouse position.
<static> void selectAll()
           Selects whole screen.
<static> void selectCharDown(<boolean> isBlock)
           Select text one row down.
<static> void selectCharFirst()
           Select text up to first char.
<static> void selectCharLast()
           Select text up to (inclusive) last char.
<static> void selectCharLeft(<boolean> isBlock)
           Select text one char to the left.
<static> void selectCharRight(<boolean> isBlock)
           Select text one char to the right.
<static> void selectCharUp(<boolean> isBlock)
           Select text one row up.
<static> void selectField()
           Selects current host Field.
<static> void selectMouse(<boolean> isBlock)
           Starts text selection via mouse dragging.
<static> void selectWord(<boolean> isBack, <boolean> isBlock)
           Worker: Selects text by word left or right.
<static> void selectWordLeft(isBlock)
           Selects text up to (including) previous word left.
<static> void selectWordRight(isBlock)
           Selects text up to (excluding) next word right.
<static> void send(<String> hostkey)
           transmits the current screen contents with the specified host function key.
<static> void wait(<Function> fnc, <int> to)
           on host response, calls specified function.

Field Detail

invalidChars

<static> {Array} invalidChars

userkeys

<static> {Object} userkeys

Constructor Detail

lwk

lwk()

Method Detail

bean

<static> Object bean(nam, val)

BEL

<static> void BEL()

copy

<static> void copy(<boolean> always)

cut

<static> void cut()

deleteBackspace

<static> void deleteBackspace()

deleteChar

<static> void deleteChar()

deleteField

<static> void deleteField()

deleteFieldEnd

<static> void deleteFieldEnd()

deleteFields

<static> void deleteFields()

deleteSelection

<static> void deleteSelection()

eval

<static> void eval()

goCharDown

<static> void goCharDown()

goCharFirst

<static> void goCharFirst()

goCharLast

<static> void goCharLast()

goCharLeft

<static> void goCharLeft()

goCharRight

<static> void goCharRight()

goCharUp

<static> void goCharUp()

goFieldFirst

<static> void goFieldFirst()

goFieldLast

<static> void goFieldLast()

goFieldLeft

<static> void goFieldLeft()

goFieldRight

<static> void goFieldRight()

goLineFirst

<static> void goLineFirst()

goLineNext

<static> void goLineNext()

goLinePrev

<static> void goLinePrev()

goWordLeft

<static> void goWordLeft()

goWordRight

<static> void goWordRight()

hideSelect

<static> void hideSelect()

hostLocked

<static> boolean hostLocked()

ignoreKey

<static> void ignoreKey()

incrChar

<static> void incrChar(<int> row, <int> col)

incrField

<static> lwh.Field incrField(<int> incr)

incrSelect

<static> void incrSelect(<int> row, <int> col, <boolean> isBlock)

inputChar

<static> void inputChar(<char> str)

inputCheck

<static> lwh.Field inputCheck(<boolean> keep)

inputField

<static> void inputField(<char> str)

inputScreen

<static> void inputScreen(<String> text, <boolean> masked, <boolean> nl, <boolean> block)

insert

<static> boolean insert(<boolean_null> val)

logLevel

<static> int logLevel(<int> value)

menuMouse

<static> void menuMouse(menu)

message

<static> void message(<String> text)

messageBEL

<static> void messageBEL()

paste

<static> void paste(<boolean> masked, <boolean> nl, <boolean> block)

pos

<static> void pos(<int_Field> row, <int> col)

posMouse

<static> void posMouse(<int> opt)

selectAll

<static> void selectAll()

selectCharDown

<static> void selectCharDown(<boolean> isBlock)

selectCharFirst

<static> void selectCharFirst()

selectCharLast

<static> void selectCharLast()

selectCharLeft

<static> void selectCharLeft(<boolean> isBlock)

selectCharRight

<static> void selectCharRight(<boolean> isBlock)

selectCharUp

<static> void selectCharUp(<boolean> isBlock)

selectField

<static> void selectField()

selectMouse

<static> void selectMouse(<boolean> isBlock)

selectWord

<static> void selectWord(<boolean> isBack, <boolean> isBlock)

selectWordLeft

<static> void selectWordLeft(isBlock)

selectWordRight

<static> void selectWordRight(isBlock)

send

<static> void send(<String> hostkey)

wait

<static> void wait(<Function> fnc, <int> to)

LogWeb V3 Default Emulator (AJAX based)

Copyright © 2006-2012 by Logics Software GmbH
Documentation generated by JSDoc on Mon Mar 3 17:24:18 2014