BBjInputE
Description
The BBjInputE object provides methods for manipulating a GUI InputE control.
Implemented Interfaces
DragSource, DropTarget, Editable, Focusable, RecordSetBindable, SimpleRecordSetBindable, TabTraversable, TextAlignable, TextControl, Validateable
Creation
BBjAPI > BBjSysGui > BBjWindow > BBjInputE
A BBjInputE object is created through the following BBjWindow methods:
Return Value |
Method |
---|---|
addInputE(int ID, number x, number y, int w, int h, string flags) |
|
addInputE(int ID, number x, number y, int w, int h, string flags, int len) |
|
addInputE(int ID, number x, number y, int w, int h, string flags, int len, string pad) |
|
addInputE(int ID, number x, number y, int w, int h, string flags, int len, string pad, string val) |
|
addInputE(int ID, number x, number y, int w, int h, string flags, int len, string pad, int initPos, string restore, string val) |
|
addInputE(int ID, number x, number y, int w, int h, string flags, string mask) |
|
addInputE(int ID, number x, number y, int w, int h, string flags, string mask, string pad) |
|
addInputE(int ID, number x, number y, int w, int h, string flags, string mask, string pad, string val) |
|
addInputE(int ID) |
|
BBjInputE | addInputE(int ID, String flags) |
BBjInputE | addInputE(int ID, String flags, int len) |
BBjInputE | addInputE(int ID, String flags, int len, string pad) |
BBjInputE | addInputE(int ID, String flags, int len, string pad, string val) |
BBjInputE | addInputE(int ID, String flags, int len, string pad, int initPos, string restore, string val) |
BBjInputE | addInputE(int ID, String flags, String mask) |
BBjInputE | addInputE(int ID, String flags, String mask, string pad) |
BBjInputE | addInputE(int ID, String flags, String mask, string pad, string val) |
BBjInputE | addInputE() |
BBjInputE | addInputE(String flags) |
BBjInputE | addInputE(String flags, int len) |
BBjInputE | addInputE(String flags, int len, string pad) |
BBjInputE | addInputE(String flags, int len, string pad, string val) |
BBjInputE | addInputE(String flags, int len, string pad, int initPos, string restore, string val) |
BBjInputE | addInputE(String flags, String mask) |
BBjInputE | addInputE(String flags, String mask, string pad) |
addInputE(String flags, String mask, string pad, string val) |
Methods of BBjInputE
Return Value |
Method |
int |
|
int |
getError() |
string |
|
boolean |
|
boolean |
|
int |
|
string |
getMask() |
int |
|
string |
|
boolean |
|
boolean |
|
string |
|
boolean |
|
void |
restore() |
void |
|
void |
setCaretPosition(int pos) |
void |
setEditable(boolean editable) |
void |
setEditString(string edit) |
void |
setHighlight(boolean highlight) |
void |
setInsertMode(boolean insert) |
void |
setLength(int len) |
void |
setMargin(int marginWidth) |
void |
setMask(string mask) |
void |
setPadCharacter(string pad) |
void |
setPassEnter(boolean pass) |
void |
setPassTab(boolean pass) |
void |
setRestore(string restore) |
Methods of BBjInputD implemented for DragSource
Return Value | Method |
---|---|
int | getDragActions() |
string | getDragType() |
void | setDragActions(int actions) |
void | setDragType(string type) |
Methods of BBjInputD implemented for DropTarget
Return Value | Method |
---|---|
int | getDropActions() |
void | setDropActions(int actions) |
BBjVector | getDropTypes() |
void | setDropTypes(BBjVector types) |
Methods of BBjInputD implemented for Editable
Return Value | Method |
---|---|
boolean | isEditable() |
void | setEditable(boolean edit) |
Methods of BBjInputD implemented for Focusable
Return Value | Method |
---|---|
boolean | isFocusable() |
void | setFocusable(boolean focus) |
Methods of BBjInputD implemented for RecordSetBindable
Return Value | Method |
---|---|
void | bindRecordSet(BBjRecordSet recordset!, string fieldname) |
string | getBoundFieldName() |
Methods of BBjInputD implemented for SimpleRecordSetBindable
Return Value | Method |
---|---|
BBjRecordSet | getBoundRecordSet() |
void | unbindRecordSet() |
Methods of BBjInputD implemented for TabTraversable
Return Value | Method |
---|---|
boolean | isTabTraversable() |
void | setTabTraversable(boolean trav) |
Methods of BBjInputD implemented for TextAlignable
Return Value | Method |
---|---|
int | getAlignment() |
void | setAlignment(int align) |
Methods of of BBjInputD implemented TextControl
Methods of BBjInputD implemented for Validateable
Return Value | Method |
---|---|
void | accept(boolean valid) |
string | getValidationText() |
Events
Callback Code |
Object-oriented Event |
Read Record Event |
Code |
---|---|---|---|
ON_CONTROL_VALIDATION |
v |
||
ON_DROP_TARGET_DROP |
D |
||
ON_EDIT_MODIFY |
e |
||
ON_GAINED_FOCUS |
f |
||
ON_INPUT_KEYPRESS |
N (Notify Code 1) |
||
ON_LOST_FOCUS |
f |
||
ON_MOUSE_ENTER |
E |
||
ON_MOUSE_EXIT |
E |
||
ON_POPUP_REQUEST |
r |
||
ON_RIGHT_MOUSE_DOWN |
R |
CSS
The visual appearance of BUI controls is defined using CSS (cascading style sheets) rules. Easily change the default colors, border, and other settings by customizing these rules, all without changing any application code. See CSS API for a high-level overview of BUI CSS.
The BBjInputE is an <input type="text"> element, with extensive JavaScript logic to manage the complex masking rules. It defines the following style names:
.BBjInputE
.BBjInputE.bbj-disabled
.BBjInputE.bbj-focused
.BBjInputE.bbj-readonly
Remarks
None.
Constants inherited from BBjControl
Example
|
See Also
INPUTE Mnemonic - Create Graphical Edit (INPUTE) Control
CALLBACK Verb - Register BBj Subroutine
DWC Component: dwc-textfield
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.