BBjInputDSpinner
Description
The BBjInputDSpinner object provides a spinner on a BBjInputD.
Implemented Interfaces
DragSource, DropTarget, Editable, Focusable, MouseWheelEnabled, RecordSetBindable, SimpleRecordSetBindable, TabTraversable, TextAlignable,TextControl, Validateable
In BBj 15.00 and higher: TextControl
Creation
BBjAPI > BBjSysGui > BBjWindow > BBjInputDSpinner
A BBjInputDSpinner object is created through the following BBjWindow methods:
Return Value |
Method |
---|---|
addInputDSpinner(int ID, number x, number y, int w, int h) |
|
addInputDSpinner(int ID, number x, number y, int w, int h, int min, int max) |
|
addInputDSpinner(int ID, number x, number y, int w, int h, string flags$) |
|
addInputDSpinner(int ID, number x, number y, int w, int h, string flags$, int min, int max) |
|
addInputDSpinner(int ID, number x, number y, int w, int h, string flags$, string mask$) |
|
addInputDSpinner(int ID, number x, number y, int w, int h, string flags$, string mask$, int min, int max) |
|
addInputDSpinner(int ID, number x, number y, int w, int h, string flags$, string mask$, string rules$) |
|
addInputDSpinner(int ID, number x, number y, int w, int h, string flags$, string mask$, string rules$, int restore, int value) |
|
addInputDSpinner(int ID, number x, number y, int w, int h, string flags$, string mask$, string rules$, int restore, int value, int min, int max) |
|
addInputDSpinner(int ID) | |
addInputDSpinner(int ID, int min, int max) | |
addInputDSpinner(int ID, String flags$) | |
addInputDSpinner(int ID, String flags$, int min, int max) | |
addInputDSpinner(int ID, String flags$, String mask$) | |
addInputDSpinner(int ID, String flags$, String mask$, int min, int max) | |
addInputDSpinner(int ID, String flags$, String mask$, string rules$) | |
addInputDSpinner(int ID, String flags$, String mask$, string rules$, int restore, int value) | |
addInputDSpinner(int ID, String flags$, String mask$, string rules$, int restore, int value, int min, int max) | |
addInputDSpinner() | |
addInputDSpinner(int min, int max) | |
addInputDSpinner(String flags$) | |
addInputDSpinner(String flags$, int min, int max) | |
BBjInputDSpinner | addInputDSpinner(String flags$, String mask$) |
BBjInputDSpinner | addInputDSpinner(String flags$, String mask$, int min, int max) |
BBjInputDSpinner | addInputDSpinner(String flags$, String mask$, string rules$) |
BBjInputDSpinner | addInputDSpinner(String flags$, String mask$, string rules$, int restore, int value) |
addInputDSpinner(String flags$, String mask$, string rules$, int restore, int value, int min, int max) |
Methods of BBjInputDSpinner
Return Value |
Method |
---|---|
int |
|
int |
|
int |
|
int |
|
int |
|
void |
setMaximumDate(int max) |
void |
setMinimumDate(int min) |
void |
setSpinField(int calendarField) |
Methods of BBjInputDSpinner inherited from BBjSpinner
Return Value |
Method |
---|---|
void |
spin(boolean up) |
Methods of BBjInputDSpinner inherited from BBjInputD
Return Value |
Method |
---|---|
void |
calendar() |
boolean |
getBeep() |
int |
|
string |
|
int |
getError() |
boolean |
|
boolean |
|
int |
|
int |
|
int |
|
string |
getMask() |
boolean |
|
boolean |
|
boolean |
|
string |
|
boolean |
|
int |
getValue() |
boolean |
|
boolean |
isValid() |
void |
restore() |
void |
setBeep(int beep) |
void |
setCalendarSize(int width, int height) |
void |
setCaretPosition(int pos) |
void |
setEditable(boolean editable) |
void |
setEditString(string edit) |
void |
setHighlight(boolean highlight) |
void |
setInsertMode(boolean insert) |
void |
setLength(int length) |
void |
setLocale(String locale) |
void |
setMargin(int marginWidth) |
void |
setMask(string mask) |
void |
setPassEnter(boolean pass) |
void |
setPassTab(boolean pass) |
void |
setPlusMinus(boolean pass) |
void |
setShowWeeks(boolean show) |
void |
setShowWeeks(boolean show) |
void |
setTodayColor(BBjColor color) |
void |
setValue(int value) |
void |
setWeekdayColor(BBjColor color) |
void |
setWeekendColor(BBjColor color) |
Methods of BBjInputDSpinner implemented for DragSource
Return Value | Method |
---|---|
int | getDragActions() |
string | getDragType() |
void | setDragActions(int actions) |
void | setDragType(string type) |
Methods of BBjInputDSpinner implemented for DropTarget
Return Value | Method |
---|---|
int | getDropActions() |
void | setDropActions(int actions) |
BBjVector | getDropTypes() |
void | setDropTypes(BBjVector types) |
Methods of BBjInputDSpinner implemented for Editable
Return Value | Method |
---|---|
boolean | isEditable() |
void | setEditable(boolean edit) |
Methods of BBjInputDSpinner implemented for Focusable
Return Value | Method |
---|---|
boolean | isFocusable() |
void | setFocusable(boolean focus) |
Methods of BBjInputDSpinner implemented for MouseWheelEnabled
Return Value | Method |
---|---|
int | getScrollWheelBehavior() |
void | setScrollWheelBehavior(int trav) |
Methods of BBjInputDSpinner implemented for RecordSetBindable
Return Value | Method |
---|---|
void | bindRecordSet(BBjRecordSet recordset!, string fieldname) |
string | getBoundFieldName() |
Methods of BBjInputDSpinner implemented for SimpleRecordSetBindable
Return Value | Method |
---|---|
BBjRecordSet | getBoundRecordSet() |
void | unbindRecordSet() |
Methods of BBjInputDSpinner implemented for TabTraversable
Return Value | Method |
---|---|
boolean | isTabTraversable() |
void | setTabTraversable(boolean trav) |
Methods of BBjInputDSpinner implemented for TextAlignable
Return Value | Method |
---|---|
int | getAlignment() |
void | setAlignment(int align) |
Methods of BBjInputDSpinner implemented TextControl
Methods of BBjInputDSpinner implemented for Validateable
Return Value | Method |
---|---|
void | accept(boolean valid) |
string | getValidationText() |
Methods of BBjInputDSpinner inherited from BBjControl
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 |
||
ON_SPIN |
x |
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 BBjSpinner samples, refer to the BUI Showcase (demo, code). The BBjInputDSpinner control contains a BBjInputD, followed by spinner arrows in a structure with the style name .BBjSpinner-arrows and either .BBjSpinner-horizontal-arrows or .BBjSpinner-vertical-arrows. It defines the following style names:
.BBjSpinner
.BBjInputDSpinner
.BBjInputD
.BBjInputD-calendar
.BBjInputDSpinner.bbj-disabled
.BBjInputDSpinner.bbj-focused
.BBjInputDSpinner.bbj-readonly
.BBjSpinner-arrows
.BBjSpinner-horizontal-arrows (on touch-oriented devices)
.BBjSpinner-vertical-arrows (on mouse-oriented systems)
.BBjSpinner-upArrow
.BBjSpinner-downArrow
Remarks
None.
Constants inherited from BBjControl
Example
See Also
INPUTN Mnemonic - Create Numeric Edit (INPUTN) Control
CALLBACK Verb - Register BBj Subroutine
DWC Component: dwc-datefield-spinner
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.