(int top, int bottom, int left, int right, boolean includeTitle, boolean modal, boolean reverse)
| 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 |
no test coverage detected