From wiki.ginstr.com
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:
  
 
;Description: Action used to display a progress dialog.
 
;Description: Action used to display a progress dialog.
 +
: To change a value of progress dialog <code>[[gn:act_changeProgressDialog]]</code>action must be used
 +
: To close the progress dialog <code>[[gn:act_hideProgressDialog]]</code> must be used
  
 
;Action returns: void
 
;Action returns: void
Line 10: Line 12:
 
===Show progress dialog===
 
===Show progress dialog===
  
;<code>[gn:act_showProgressDialog]|[source,maxValue,currentValue,keyword]</code>
+
:;<code>[gn:act_showProgressDialog]|[source,maxValue,currentValue,keyword]</code>
  
{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
+
:{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 
|-
 
|-
 
! scope="col" | Parameter
 
! scope="col" | Parameter
 
! scope="col" | Description
 
! scope="col" | Description
 
|-
 
|-
| [[source]]
+
| <code>[[source]]</code>
 
| [[source]] from where the progress dialog message will be used
 
| [[source]] from where the progress dialog message will be used
 
* Valid [[source|sources]]:
 
* Valid [[source|sources]]:
 
** any [[source]]
 
** any [[source]]
 
|-
 
|-
| maxValue
+
| <code>maxValue</code>
 
| number which represents the maximum value
 
| number which represents the maximum value
 
|-
 
|-
| currentValue
+
| <code>currentValue</code>
 
| number which represents the current value
 
| number which represents the current value
 
|-
 
|-
| keyword
+
| <code>keyword</code>
| keyword represents progress dialog type
+
| defines the progress dialog type
 
Can be:
 
Can be:
 
* <code>SPINNER</code>
 
* <code>SPINNER</code>
Line 37: Line 39:
  
 
====Example====
 
====Example====
<code>@+id/dialogMessage</code> - source<br>
+
:<code>@+id/dialogMessage</code> - source<br>
<code>100</code> - maxValue<br>
+
:<code>100</code> - maxValue<br>
<code>100</code> - currentValue<br>
+
:<code>100</code> - currentValue<br>
<code>SPINNER</code> - keyword<br><br>
+
:<code>SPINNER</code> - keyword<br>
<code>[gn:act_showProgressDialog]|[@+id/dialogMessage,100,100,SPINNER]</code>
+
:; ⤷ <code>[gn:act_showProgressDialog]|[@+id/dialogMessage,100,100,SPINNER]</code>
 
<hr>
 
<hr>

Latest revision as of 16:41, 8 August 2019

gn:act_showProgressDialog

Description
Action used to display a progress dialog.
To change a value of progress dialog gn:act_changeProgressDialogaction must be used
To close the progress dialog gn:act_hideProgressDialog must be used
Action returns
void

Action signatures

Show progress dialog

[gn:act_showProgressDialog]|[source,maxValue,currentValue,keyword]
Parameter Description
source source from where the progress dialog message will be used
maxValue number which represents the maximum value
currentValue number which represents the current value
keyword defines the progress dialog type

Can be:

  • SPINNER
  • HORIZONTAL

Example

@+id/dialogMessage - source
100 - maxValue
100 - currentValue
SPINNER - keyword
[gn:act_showProgressDialog]|[@+id/dialogMessage,100,100,SPINNER]