Installing and using Mobile Suite : webMethods Mobile Designer Native User Interface Reference : Native User Interface (NativeUI) Objects : nUICheckboxButton
nUICheckboxButton
com.softwareag.mobile.runtime.nui.nUICheckboxButton
Use to display a check box.
Usage Notes
*Valid states for the check box are 0 (zero) meaning clear and 1 (one) meaning selected.
*The nUICheckboxButton object provides the following check box types. Use the type that is most appropriate for your application’s target platforms.
*nUICheckboxButton.TYPE_DEFAULT, which indicates the application uses the check box type that is considered the most appropriate for the target platform.
*nUICheckboxButton.TYPE_OFF_ON indicates a check box that uses “On” and “Off”.
*nUICheckboxButton.TYPE_YES_NO specifies a check box that uses “Yes” and “No”. For platforms that do not support yes/no check boxes, Mobile Designer implements a nUIButtonElement object with equivalent “Yes” and “No” text labels.
The default state for a check box is 0 (zero), meaning clear, off, or no.
Example
This code sample displays a check box. Illustrations of how the example code is rendered on various platforms follows the code sample.
view.add(new nUICheckboxButton(NUIID_MY_CHECKBOX, "nUICheckboxButton"));
Platform
Platform-Specific Class and Illustration
Android
android.widget.CheckBox
Cleared
Selected
iOS 7
UISwitch
Cleared
Selected
iOS 6
UISwitch
Cleared
Selected
Windows Phone
ToggleButton
Cleared
 
Selected
Windows RT
Windows 8
Windows.UI.Xaml.Controls.CheckBox
 
Other
Cleared
Selected
Copyright © 2007-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback