Mobile Development 10.11 | webMethods Mobile SuiteWeb Help | webMethods Mobile Designer Native User Interface Reference | Native User Interface (NativeUI) Objects | About the NativeUI Objects
 
About the NativeUI Objects
The webMethods Mobile Designer native user interface (NativeUI) library provides a standard way to create user interfaces for mobile applications that run on multiple platforms. The NativeUI library is made up of NativeUI objects.
The NativeUI library includes platform-specific support for Android and iOS. When the NativeUI has platform-specific support, NativeUI maps each NativeUI object to a platform-specific object for a target device. As a result, when the user interface is rendered on a target device, the user interface displays using the platform-specific object. For example, you might want to include a check box in the mobile application’s user interface. To do so, you can use the NativeUI object nUICheckboxButton. The nUICheckboxButton object maps to:
*android.widget.CheckBox for an Android device
*UISwitch for an iOS device
This Mobile Designer documentation describes the NativeUI objects in the NativeUI library. For additional information about the NativeUI objects, see information about the com.softwareag.mobile.runtime.nui package in the webMethods Mobile Designer Java API Reference.
Naming Conventions for NativeUI Objects
The names of the NativeUI objects begin with the prefix "nUI", followed by the object's name, which is then followed by the name of the object’s parent. For example, the NativeUI check box object is a subtype of the NativeUI button object. Its name is nUICheckboxButton, where the object’s name is Checkbox and parent name is Button.
Font Sizes Used Text in the NativeUI Objects
When displaying text in a NativeUI object, the font size of the text is based on the platform’s user interface guidelines and usability requirements. However, some elements allow you to override the font size used on a per-object basis expressed as density independent points. Commonly, you use the setFontSize(float points) method.