nUIViewDisplay
com.softwareag.mobile.runtime.nui.nUIViewDisplay
Use to create a view that contains other NativeUI objects. A view can contain any object except a
nUIWindowDisplay object or another
nUIViewDisplay object.
Usage Notes
The following are platform-specific considerations:
The
InnerX and
InnerY attributes are set as follows:
Platform | InnerX Attribute Value | InnerY Attribute Value |
Android | 0 (zero) | 0 (zero) |
iOS | screen_width / 40 | 0 (zero) |
The following tables lists the number of
nUINavbuttonElement objects that you can display in a
nUIViewDisplay object based on platform:
Platform | nUINavbuttonElement objects allowed in a nUIViewDisplay object |
Android | 1-3 |
iOS | iPhone: 1-3 iPad: 1-6 |
Example
This code sample creates a view. Details on how the example code is rendered on various platforms follow the code sample.
nUIViewDisplay view = new nUIViewDisplay(NUIID_WEBVIEWELEMENT_VIEW);
view.setHeadertext("nUIViewDisplay");
nUINavbuttonElement ne = new nUINavbuttonElement(NUIID_BACK_BUTTON, "Back",
nUINavbuttonElement.TYPE_BACK, null);
view.add(ne);
Platform | Platform-Specific Class and Visual Reference |
Android | View |
iOS | UIView |