MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / showModal

Method showModal

CodenameOne/src/com/codename1/ui/Dialog.java:1451–1469  ·  view source on GitHub ↗
(int top, int bottom, int left, int right, boolean includeTitle, boolean modal, boolean reverse)

Source from the content-addressed store, hash-verified

1449 }
1450
1451 @Override
1452 void showModal(int top, int bottom, int left, int right, boolean includeTitle, boolean modal, boolean reverse) {
1453 if (Display.isInitialized() && Display.getInstance().isMinimized()) {
1454 Log.p("Modal dialogs cannot be displayed on a minimized app");
1455 return;
1456 }
1457 this.top = top;
1458 this.bottom = bottom;
1459 this.left = left;
1460 this.right = right;
1461
1462 // hide the title if no text is there to allow the styles of the dialog title to disappear
1463 if (dialogTitle != null && getUIManager().isThemeConstant("hideEmptyTitleBool", false)) {
1464 boolean b = dialogTitle.getText().length() > 0;
1465 getTitleArea().setVisible(b);
1466 getTitleComponent().setVisible(b);
1467 }
1468 super.showModal(top, bottom, left, right, includeTitle, modal, reverse);
1469 }
1470
1471 /// A popup dialog is shown with the context of a component and its selection, it is disposed seamlessly if the back button is pressed
1472 /// or if the user touches outside its bounds. It can optionally provide an arrow in the theme to point at the context component. The popup

Callers 3

showMethod · 0.95
showAtPositionMethod · 0.95
showImplMethod · 0.45

Calls 11

isInitializedMethod · 0.95
getInstanceMethod · 0.95
pMethod · 0.95
getTitleComponentMethod · 0.95
isThemeConstantMethod · 0.80
getTitleAreaMethod · 0.80
lengthMethod · 0.65
getTextMethod · 0.65
isMinimizedMethod · 0.45
getUIManagerMethod · 0.45
setVisibleMethod · 0.45

Tested by

no test coverage detected