Contents |
Vibrate
Widget is used to execute vibrate duration.
Widget is hidden.
Widget id, ${gbamID}
:
actionVibrate
Back to GBAM widgets table
Datatypes
Widget does not participate in data operations.
Predefined user data
PreLoaded
Properties panel
User will configure this data in properties panels of selected widget:
GENERAL
- "database column headline",
${widgetLabel}
VALIDATIONS
- -
internal validators
- -
ACTION
- "vibration duration (example 2 or 1.5,0.2,1.5)",
${duration}
user can enter number which represents:
- entered user value should be converted to milliseconds and user should not be allowed to write anything else but the duration.
- Duration "1.5" will be converted in action to "1500" i.e [gn:act_vibrate]|[0,1500]. Default value is 2.
- entered user value should be converted to milliseconds and user should not be allowed to write anything else but the duration.
- "on event" triggers the action in common widget code at specific event. Events are are listed in a dropdown can be:
screen load
widget code is added into root node of the screen in attributegn:act_beforeLoad
as:
gn:act_beforeLoad="[gn:act_trigger]|[@+id/idOfCurrentWidget,gn:act_set]" gn:act_set="Common widget code"
Button save
, trigger code:
[gn:act_trigger]|[@+id/idOfCurrentWidget,gn:act_set]
- as attribute to Button save widget:
gn:act_set="Common widget code"
- needs to be added to widget Button save at:
- Two options when to execute:
before
, then insert the trigger code at Button_save#.24.7BeventBefore.7D:after
, then insert the trigger code at Button_save#.24.7BeventAfter.7D
Button clean widgets
, trigger code:
[gn:act_trigger]|[@+id/idOfCurrentWidget,gn:act_set]
- as attribute to Button clean widgets widget:
gn:act_set="Common widget code"
- Two options when to execute:
before
, then insert the code at Button_clean_widgets#.24.7BeventBefore.7Dafter
, then insert the code at Button_clean_widgets#.24.7BeventAfter.7D
Button query
, trigger code:
- Two options when to execute:
[gn:act_trigger]|[@+id/idOfCurrentWidget,gn:act_set]
- as attribute to Button query widget:
gn:act_set="Common widget code"
- Two options when to execute:
before
, then insert the code at Button_query#.24.7BeventBefore.7Dafter
, then insert the code at Button_query#.24.7BeventAfter.7D
- Two options when to execute:
ACTION MESSAGES
- -
DATABASE
- -
Code snippets
GBAM Code Variables
Variables which are used in code snippet below but not defined in user modifiable inputs.
- -
Common widget code
screen.xml
[gn:act_vibrate]|[0,${duration}]