BBjCheckBox
Description
The BBjCheckBox object provides methods for manipulating a GUI check box control.
Implemented Interfaces
DropTarget, Editable, Focusable, RecordSetBindable,SimpleRecordSetBindable,TabTraversable, TextAlignable, Validateable
Creation
BBjAPI > BBjSysGui > BBjWindow > BBjCheckBox
A BBjCheckBox object is created through the following BBjWindow methods:
Return Value |
Method |
---|---|
BBjCheckBox |
addCheckBox(int ID, number x, number y, number width, number height, string title) |
BBjCheckBox |
addCheckBox(int ID, number x, number y, number width, number height, string title, string flags) |
BBjCheckBox | addCheckBox(int ID, string title) |
BBjCheckBox | addCheckBox(int ID, string title, String flags) |
BBjCheckBox | addCheckBox(string title) |
BBjCheckBox |
addCheckBox(string title, String flags) |
Methods of BBjCheckBox
Return Value | Method |
---|---|
int | getHorizontalTextPosition() |
boolean | isEditable(int editable) |
boolean | isSelected() |
void | setEditable(boolean editable) |
void | setHorizontalTextPosition(int position) |
void | setSelected(boolean selected) |
Methods of BBjCheckBox implemented for DropTarget
Return Value | Method |
---|---|
int | getDropActions() |
void | setDropActions(int actions) |
BBjVector | getDropTypes() |
void | setDropTypes(BBjVector types) |
Methods of BBjCheckBox implemented for Editable
Return Value | Method |
---|---|
boolean | isEditable() |
void | setEditable(boolean edit) |
Methods of BBjCheckBox implemented for Focusable
Return Value | Method |
---|---|
boolean | isFocusable() |
void | setFocusable(boolean focus) |
Methods of BBjCheckBox implemented for RecordSetBindable
Return Value | Method |
---|---|
void | bindRecordSet(BBjRecordSet recordset!, string fieldname) |
string | getBoundFieldName() |
Methods of BBjCheckBox implemented SimpleRecordSetBindable
Return Value | Method |
---|---|
BBjRecordSet | getBoundRecordSet() |
void | unbindRecordSet() |
Methods of BBjCheckBox implemented for TabTraversable
Return Value | Method |
---|---|
boolean | isTabTraversable() |
void | setTabTraversable(boolean trav) |
Methods of BBjCheckBox implemented for TextAlignable
Return Value | Method |
---|---|
int | getAlignment() |
void | setAlignment(int align) |
Methods of BBjCheckbox implemented for Validateable
Return Value | Method |
---|---|
void | accept(boolean valid) |
string | getValidationText() |
Methods of BBjCheckBox inherited from BBjControl
Events
Callback Code | Object-oriented Event | Read Record Event | Code |
---|---|---|---|
ON_CHECK_CHANGE | BBjCheckChangeEvent | Check/Uncheck Event | c |
ON_CHECK_OFF |
c |
||
ON_CHECK_ON |
c |
||
ON_CONTROL_VALIDATION |
v |
||
ON_DROP_TARGET_DROP |
D |
||
ON_GAINED_FOCUS |
f |
||
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 BBjCheckBox is implemented as an <input type="checkbox"> element with an associated label. It defines the following style names:
Style Names |
---|
.BBjCheckBox |
.BBjCheckBox.bbj-checked |
.BBjCheckBox.bbj-disabled |
.BBjCheckBox.bbj-focused |
.BBjCheckBox.bbj-readonly |
HTML checkbox and radiobutton elements are notoriously difficult to style.
Remarks
None.
Constants inherited from BBjControl
Example
|
See Also
CHECKBOX Mnemonic - Create Check Box Control BBj
CALLBACK Verb - Register BBj Subroutine
DWC Component: dwc-checkbox
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.