webMethods Mobile Suite  | webMethods Mobile SuiteWeb Help | webMethods Mobile Designer Native User Interface Reference | Native User Interface (NativeUI) Objects | nUIViewDisplay
 
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
*You can add a view (nUIViewDisplay) to a nUIWindowDisplay object.
*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

Copyright © 2010-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.