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

Method showImpl

CodenameOne/src/com/codename1/ui/Dialog.java:1410–1431  ·  view source on GitHub ↗
(boolean reverse)

Source from the content-addressed store, hash-verified

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...

Callers 2

showBackMethod · 0.95
showMethod · 0.95

Calls 10

isInitializedMethod · 0.95
getInstanceMethod · 0.95
pMethod · 0.95
setDisposedMethod · 0.95
showMethod · 0.95
getDialogPositionMethod · 0.95
showPackedMethod · 0.95
showModelessMethod · 0.95
isMinimizedMethod · 0.45
showModalMethod · 0.45

Tested by

no test coverage detected