/** * @see IUserContextEvent#committed() */ @Override public void committed() { reset(); }
/** * Clear desktop. */ @EventHandler(value = "click", target = "mnuClearDesktop") private void onClick$mnuClearDesktop() { DialogUtil.confirm(DesignConstants.MSG_DESKTOP_CLEAR, DesignConstants.CAP_DESKTOP_CLEAR, (confirm) -> { if (confirm) { shell.reset(); } }); }
/** * Build the UI based on the specified layout. * * @param layout Layout for building UI. */ public void buildUI(Layout layout) { this.layout = layout; reset(); layout.materialize(desktop); desktop.setAppId(FrameworkUtil.getAppName()); desktop.activate(true); if (autoStart) { start(); } }