NativeUI Demo
The NativeUI Demo application demonstrates the use of all the major native user interface (NativeUI) classes in Mobile Designer.
The sample also demonstrates how to support tablet devices. It contains code to determine whether it is running on a tablet based on the screen size of the device. When running on a tablet, the application uses multiple panes in the user interface. For more information about using panes, see webMethods Mobile Designer Native User Interface Reference.
Mobile Designer provides three versions of the NativeUI Demo.
_NativeUIDemo_ was hand coded using
Mobile Designer functionality, and uses the classic runtime.
_NativeUIDemoNew_ was hand coded using
Mobile Designer functionality, and uses the new runtime. It showcases some additional features only available in the new runtime.
_NativeUIDemoX_ was created using
Mobile Development.
This version of the sample illustrates how to use Mobile Development to create a mobile application. In this sample, many of the user interface objects were added explicitly in the Outline Editor. For example, a button was added using the Mobile Development Button object. However, some objects were defined using the dynamic objects that Mobile Development offers, for example, the DynamicDisplayObject object. The dynamic objects were used to illustrate how to use dynamic objects and how to provide user code for dynamic objects.
Mobile Development provides a default resource handler that handles most resources. However, this project also uses a custom resource handler to illustrate handling cases when custom code/dynamic objects requires resources that the default resource handler cannot accommodate.
Note: | To use the _NativeUIDemoX_ version of the sample, you need to import the sample project into Software AG Designer. The _NativeUIDemoX_ sample project includes the information for the model. It also includes user logic in the src folder (that is, the user space). However, before you can use the project, you must use the Mobile Development Generate Source Code > Application Model and API command to generate sources for the project. This command generates the logic to execute the model in the gen/src folder and the Mobile Development API in the gen/api-src folder. For more information about generating sources, see webMethods Mobile Development Help. |