nUIDialogWindow
com.softwareag.mobile.runtime.nui.nUIDialogWindow
Use to display a pop-up window.
Usage Notes
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. |