@Override public boolean keyDown (InputEvent event, int keycode2) { if (keycode == keycode2) { result(object); if (!cancelHide) hide(); cancelHide = false; } return false; } });
@LmlAction("close") public void close() { dialog.hide(); }
@LmlAction("onOkPressed") void onOkClick() { dialog.hide(); }
@Override public void run() { if (dialog != null) { dialog.hide(); } // Show error dialog errorDialogController.setError(exception); interfaceService.showDialog(errorDialogController.getClass()); } });
@LmlAction("hide") void hide() { if (model != null) { model.dispose(); model = null; } if (dialog != null) { dialog.hide(); } }
@LmlAction("onCancelPressed") void onCancelClick() { dialog.hide(); selectedColor.set(originalColor); updateProjectProperty(); }
/** * Hides the dialog. Called automatically when a button is clicked. The default implementation fades out the dialog over 400 * milliseconds and then removes it from the stage. */ public void hide () { hide(sequence(Actions.fadeOut(FADE_TIME, Interpolation.fade), Actions.removeListener(ignoreTouchDown, true), Actions.removeActor())); }
@Override public void changed (ChangeEvent event, Actor actor) { if (!values.containsKey(actor)) return; while (actor.getParent() != buttonTable) actor = actor.getParent(); result(values.get(actor)); if (!cancelHide) hide(); cancelHide = false; } });
@Override public void onProcessingFinished() { btnClose.setDisabled(false); btnClose.setColor(Color.WHITE); FocusManager.switchFocus(stage, btnClose); window.closeOnEscape(); if (!errors && cbAutoClose.isChecked()) { window.hide(); showReopenLastDialogNotification(); } // If there is only one pack, show log on error if (errors && adapter.size() == 1) { adapter.getView(adapter.get(0)).showLogWindow(); } // Indicate total result by changing progress bar color { ProgressBar.ProgressBarStyle style = new ProgressBar.ProgressBarStyle(progressBar.getStyle()); Drawable fill = errors ? VisUI.getSkin().getDrawable("progressBarErr") : VisUI.getSkin().getDrawable("progressBarSucc"); style.knob = fill; style.knobBefore = fill; progressBar.setStyle(style); } }