|
LogWeb V3 Default Emulator (AJAX based) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--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:
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 |
<static> {Array} invalidChars
<static> {Object} userkeys
Constructor Detail |
lwk()
Method Detail |
<static> Object bean(nam, val)
String
- ) nam required: the variable name (String!).
Object
- ) val optional: the value to be assigned.
<static> void BEL()
<static> void copy(<boolean> always)
always
- : if true: copies invisible selection as well
<static> void cut()
<static> void deleteBackspace()
<static> void deleteChar()
<static> void deleteField()
<static> void deleteFieldEnd()
<static> void deleteFields()
<static> void deleteSelection()
<static> void eval()
<static> void goCharDown()
<static> void goCharFirst()
<static> void goCharLast()
<static> void goCharLeft()
<static> void goCharRight()
<static> void goCharUp()
<static> void goFieldFirst()
<static> void goFieldLast()
<static> void goFieldLeft()
<static> void goFieldRight()
<static> void goLineFirst()
<static> void goLineNext()
<static> void goLinePrev()
<static> void goWordLeft()
<static> void goWordRight()
<static> void hideSelect()
<static> boolean hostLocked()
<static> void ignoreKey()
<static> void incrChar(<int> row, <int> col)
row
- the row increment
col
- the column increment
<static> lwh.Field incrField(<int> incr)
incr
- the field increment (negative, 0, positive)
<static> void incrSelect(<int> row, <int> col, <boolean> isBlock)
row
- the row increment
col
- the column increment
isBlock
- if true: starts a new block selection; else: starts a new lines selection. Evaluated only when a new selection is initiated (else: selection mode is not changed).
<static> void inputChar(<char> str)
str
- the input character
<static> lwh.Field inputCheck(<boolean> keep)
keep
- : if true, keeps the current selection (if any)
<static> void inputField(<char> str)
str
- the input character; relaxed mode for multi character input
<static> void inputScreen(<String> text, <boolean> masked, <boolean> nl, <boolean> block)
text
- the input String
masked
- if true, performs masked input
nl
- if true, respects NL char, and auto-detects block mode.
block
- if true, always forces block mode (requires nl as well)
<static> boolean insert(<boolean_null> val)
val
- optional: sets or resets insert mode; if null: toggles insert mode; if missing: returns current insert mode only.
<static> int logLevel(<int> value)
value
- optional: the new value; if missing: simply returns the current value
<static> void menuMouse(menu)
optional
- : menu the menu to show; default is emulation menu bar menu "lwh.menu.bar"
<static> void message(<String> text)
text
- the message text; if empty or null: clears the async message immediatelly
<static> void messageBEL()
<static> void paste(<boolean> masked, <boolean> nl, <boolean> block)
masked
- if true, performs masked input
nl
- if true, respects NL char, and auto-detects block mode.
block
- if true, always forces block mode (requires nl as well)
<static> void pos(<int_Field> row, <int> col)
row
- the host row number (0..lwh.host.rows-1); if 2nd argument col is missing: specifies the host field instead, or per index into lwh.host.fields[], or per host Field Object
col
- optional: the host column number, 0..lwh.host.cols-1; if missing: 1st argument (row) specifies the field
<static> void posMouse(<int> opt)
opt
- optional, for VT only: 1 = use cursor upd/down (default), 2 = use tab/cbt
<static> void selectAll()
<static> void selectCharDown(<boolean> isBlock)
isBlock
- optional; if true: starts a new block selection; else: starts a new lines selection. Evaluated only when a new selection is initiated (else: selection mode is not changed).
<static> void selectCharFirst()
<static> void selectCharLast()
<static> void selectCharLeft(<boolean> isBlock)
isBlock
- optional; if true: starts a new block selection; else: starts a new lines selection. Evaluated only when a new selection is initiated (else: selection mode is not changed).
<static> void selectCharRight(<boolean> isBlock)
isBlock
- optional; if true: starts a new block selection; else: starts a new lines selection. Evaluated only when a new selection is initiated (else: selection mode is not changed).
<static> void selectCharUp(<boolean> isBlock)
isBlock
- optional; if true: starts a new block selection; else: starts a new lines selection. Evaluated only when a new selection is initiated (else: selection mode is not changed).
<static> void selectField()
<static> void selectMouse(<boolean> isBlock)
isBlock
- if true, selects a text block; else, selects lines of text
<static> void selectWord(<boolean> isBack, <boolean> isBlock)
isBack
- if true, selects backwards (to the left), else: selects forewards (to the right).
isBlock
- if true, starts a block selection; else: starts a line selection. Note: if selection is extended, isBlock is ignored.
<static> void selectWordLeft(isBlock)
<static> void selectWordRight(isBlock)
<static> void send(<String> hostkey)
hostkey
- the host function key.
<static> void wait(<Function> fnc, <int> to)
fnc
- required: the function to call
to
- optional: the time to wait after receipt of (last) host response before calling fnc; if missing: 0 **NOT IMPLEMENTED**
|
LogWeb V3 Default Emulator (AJAX based) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |