BBjSlider
Description
The BBjSlider object provides methods for manipulating a GUI slider control.
Implemented Interfaces
DropTarget, Focusable, MouseWheelEnabled, RecordSetBindable, SimpleRecordSetBindable,TabTraversable
Creation
BBjAPI > BBjSysGui > BBjWindow > BBjSlider
A BBjSlider object is created through the following BBjWindow methods:
Return Value |
Method |
---|---|
addHorizontalSlider() | |
addHorizontalSlider(int ID) |
|
addHorizontalSlider(int ID, number x, number y, number width, number height) |
|
addHorizontalSlider(int ID, number x, number y, number width, number height, string flags) |
|
addHorizontalSlider(int ID, string flags) |
|
BBjSlider | addHorizontalSlider(String flags) |
BBjSlider | addVerticalSlider() |
BBjSlider | addVerticalSlider(int ID) |
BBjSlider | addVerticalSlider(int ID, number x, number y, number w, number h) |
BBjSlider | addVerticalSlider(int ID, number x, number y, number w, number h, string flags) |
BBjSlider | addVerticalSlider(int ID, string flags) |
addVerticalSlider(string flags) |
Methods of BBjSlider
Return Value |
Method |
boolean |
|
int |
|
int |
|
int |
|
int |
|
int |
|
boolean |
|
boolean |
|
boolean |
|
int |
getValue() |
void |
setInverted(boolean inverted) |
void |
setLabels(Map<Integer,String> labels) |
void |
setMajorTickSpacing(int tick) |
void |
setMaximum(int maximum) |
void |
setMinimum(int minimum) |
void |
setMinorTickSpacing(int tick) |
void |
setPaintLabels(boolean paint) |
void |
setPaintTicks(boolean paint) |
void |
setSnapToTicks(boolean snap) |
void |
setValue(intvalue) |
Methods of BBjSlider implemented for DropTarget
Return Value | Method |
---|---|
int | getDropActions() |
void | setDropActions(int actions) |
BBjVector | getDropTypes() |
void | setDropTypes(BBjVector types) |
Methods of BBjSlider implemented for Focusable
Return Value | Method |
---|---|
boolean | isFocusable() |
void | setFocusable(boolean focus) |
Methods of BBjSlider implemented for MouseWheelEnabled
Return Value | Method |
---|---|
int | getScrollWheelBehavior() |
void | setScrollWheelBehavior(int trav) |
Methods of BBjSlider implemented for RecordSetBindable
Return Value | Method |
---|---|
void | bindRecordSet(BBjRecordSet recordset!, string fieldname) |
string | getBoundFieldName() |
Methods of BBjSlider implemented for SimpleRecordSetBindable
Return Value | Method |
---|---|
BBjRecordSet | getBoundRecordSet() |
void | unbindRecordSet() |
Methods of BBjSlider implemented for TabTraversable
Return Value | Method |
---|---|
boolean | isTabTraversable() |
void | setTabTraversable(boolean trav) |
Methods of BBjSlider inherited from BBjControl
Events
Callback Code |
Object-oriented Event |
Read Record Event |
Code |
ON_CONTROL_SCROLL |
p |
||
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.
For a sample BBjSlider, refer to the BUI Showcase (demo, code). The BBjSlider defines the following style names:
.BBjSlider
.BBjSlider.bbj-disabled
.BBjSlider.bbj-focused
.BBjSlider.bbj-horizontal
.BBjSlider.bbj-vertical
.BBjSlider.bbj-labels
.BBjSlider.bbj-ticks
.BBjSlider-line
.BBjSlider-line-sliding
.BBjSlider-knob
.BBjSlider-knob-sliding
.BBjSlider-label
.BBjSlider-minor-tick
.BBjSlider-major-tick
Remarks
None.
Constants inherited from BBjControl
Example
|
See Also
SCROLL Mnemonic - Set Scrolling Attributes
CALLBACK Verb - Register BBj Subroutine
DWC Component: dwc-slider
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.