(boolean reverse)
| 1408 | /// The default version of show modal shows the dialog occupying the center portion |
| 1409 | /// of the screen. |
| 1410 | private void showImpl(boolean reverse) { |
| 1411 | if (modal && Display.isInitialized() && Display.getInstance().isMinimized()) { |
| 1412 | Log.p("Modal dialogs cannot be displayed on a minimized app"); |
| 1413 | return; |
| 1414 | } |
| 1415 | // this behavior allows a use case where dialogs of various sizes are layered |
| 1416 | // one on top of the other |
| 1417 | setDisposed(false); |
| 1418 | if (top > -1) { |
| 1419 | show(top, bottom, left, right, includeTitle, modal); |
| 1420 | } else { |
| 1421 | if (modal) { |
| 1422 | if (getDialogPosition() == null) { |
| 1423 | super.showModal(reverse); |
| 1424 | } else { |
| 1425 | showPacked(getDialogPosition(), true); |
| 1426 | } |
| 1427 | } else { |
| 1428 | showModeless(); |
| 1429 | } |
| 1430 | } |
| 1431 | } |
| 1432 | |
| 1433 | /// Shows a modeless dialog which is useful for some simpler use cases such as |
| 1434 | /// progress indication etc... |
no test coverage detected