Building Mobile Enterprise Applications : webMethods Mobile Designer Native User Interface Reference : Native User Interface (NativeUI) Objects : nUIContainerElement
nUIContainerElement
com.softwareag.mobile.runtime.nui.nUIContainerElement
Use to display a container that holds other NativeUI objects.
You can set the container’s attributes to allow scrolling. For example, the application might use the container to hold long pieces of text that exceeds the viewable area, allowing the user to scroll through the text.
Usage Notes
*Set the Height attribute to set height of the object. By default, the nUIContainerElement object occupies the remaining width of the parent object. However, you can adjust the width of the nUIContainerElement object using the Width attribute.
*If you want to use a scrolling nUIContainerElement object in a view, ensure that the parent nUIViewDisplay object does not allow scrolling.
Caution:  
Setting the Hscrollable attribute to true to allow horizontal scrolling currently results in undefined behavior.
*The following are platform-specific considerations:
Android
The InnerX and InnerY default values are 0 (zero).
iOS
The InnerX and InnerY default values are 0 (zero).
Windows Phone
The InnerX and InnerY default values are 0 (zero).
Windows RT
Windows 8
The InnerX and InnerY default values are 0 (zero).
Example
This code sample displays the nUIContainerElement object between two nUIButtonElement objects. Illustrations of how the example code is rendered on various platforms follows the code sample.
//Add buttons to help demonstrate the bounds of the container.
view.add(new nUIButtonElement(-1, "nUIButtonElement 1"));
 
nUIContainerElement my_container = new nUIContainerElement(-1);
my_container.setHeight(150);
my_container.add(new nUITextfieldElement(-1, LOREM_IPSUM_STRING));
view.add(my_container);
 
view.add(new nUIButtonElement(-1, "nUIButtonElement 2"));
Platform
Platform-Specific Class and Illustration
Android
android.widget.ScrollView with RelativeLayout.LayoutParams
iOS 7
UIView with a UIScrollView
iOS 6
UIView with a UIScrollView
Windows Phone
System.Windows.Controls.Canvas with the ScrollViewer
 
Windows RT
Windows 8
Windows.UI.Xaml.Controls.Canvas with internal ScrollViewer
 
Other
Copyright © 2007-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback