Mobile Development 10.11 | webMethods Mobile SuiteWeb Help | webMethods Mobile Designer Native User Interface Reference | Native User Interface (NativeUI) Objects | nUIDialogWindow
 
nUIDialogWindow
com.softwareag.mobile.runtime.nui.nUIDialogWindow
Use to display a pop-up window.
Usage Notes
*You can add a nUIViewDisplay object to the nUIDialogWindow object.
*The nUIDialogWindow object does not support multiple panes, the nUINavView object, or nUINavbuttonElement object.
Example
This code sample displays a pop-up window. Details on how the example code is rendered on various platforms follow the code sample.
nUIDialogWindow custom_dialog = new nUIDialogWindow(NUIID_MY_CUSTOM_DIALOG);
nUIViewDisplay view = new nUIViewDisplay(-1);
view.add(new nUITextfieldElement(-1, "Lorem"));
view.add(new nUIEntryElement(NUIID_ENTRYELEMENT_IPSUM, "Ipsum"));
view.add(new nUIEntryElement(NUIID_ENTRYELEMENT_DOLOR, "Dolor"));
nUITableElement button_table = new nUITableElement(-1, new int[]{50, 50});
nUITablerowElement tr = new nUITablerowElement(-1);
{
nUITablecellElement tc = new nUITablecellElement(-1);
{
tc.add(new nUIButtonElement(NUIID_BUTTON_SIT, "Sit"));
}
tr.add(tc);
tc = new nUITablecellElement(-1);
{
tc.add(new nUIButtonElement(NUIID_BUTTON_AMET, "Amet"));
}
tr.add(tc);
}
button_table.add(tr);
view.add(button_table);
custom_dialog.add(view);
Platform
Platform-Specific Class and Visual Reference
Android
android.app.Dialog
iOS
UIView initialized with a UIModalPresentationFormSheet
Note:
On an iPhone, the nUIDialogWindow object occupies the entire screen.