/** * Clicking cancel button discards changes and closes viewer. */ @EventHandler(value = "click", target = "btnCancel") private void onClick$btnCancel() { window.close(); }
/** * Retrieve the response and close the dialog. * * @param component The component associated with the response. */ private void close(BaseComponent component) { response = component == null ? null : (DialogResponse<?>) component.getData(); root.close(); }
/** * Handles close events from the client. */ @EventHandler(value = "close", syncToClient = false, mode = "init") private void _close() { close(); }
/** * Close the window. If this is a local window, simply hide it. If it is a remote window, close * the browser window entirely. * * @see org.carewebframework.help.IHelpViewer#close() */ @Override public void close() { root.close(); if (mode != HelpViewerMode.EMBEDDED) { ClientUtil.invoke("window.close"); } }
@EventHandler(value = "click", target = "btnClose") private void btnClose$click() { window.close(); }
/** * Close the dialog if it is open. */ public static void closeDialog() { Window dlg = getInstance(false); if (dlg != null) { dlg.close(); } }
/** * Close dialog without further action. */ @EventHandler(value = "click", target = "btnCancel") private void onClick$btnCancel() { window.close(); }
/** * Clicking the cancel button aborts the input. */ @EventHandler(value = "click", target = "btnCancel") private void onClick$btnCancel() { root.close(); }
@EventHandler(value = "click", target = "btnCancel") private void onClick$btnCancel() { window.close(); }
@EventHandler(value = "click", target = "btnClose") private void onClick$btnClose() { window.close(); }
@EventHandler(value = "click", target = "btnClose") private void onClose$btnClose() { root.close(); }
/** * Clicking OK button commits changes and closes viewer. */ @EventHandler(value = "click", target = "btnOK") private void onClick$btnOK() { if (commit()) { window.close(); } }
/** * Clicking the OK button commits any pending edits and closes the dialog. */ @EventHandler(value = "click", target = "@btnOK") private void onClick$btnOK() { if (commitChanges(true)) { window.close(); } }
private void close(LayoutIdentifier layoutId) { window.setAttribute("layoutId", layoutId); LayoutManager.defaultIsShared(layoutId.shared); window.close(); }
@EventHandler(value = "click", target = "btnCancel") private void onCancel() { root.setAttribute("result", null); root.close(); } }
/** * Clicking the cancel button cancels any pending edits and, if embedded mode is not active, * closes the dialog. */ @EventHandler(value = "click", target = "@btnCancel") private void onClick$btnCancel() { if (embedded) { commitChanges(false); } else { window.close(); } }
/** * Sets the selected layout and closes the dialog. */ @EventHandler(value = "click", target = "@btnOK") private void onClick$btnOK() { LayoutIdentifier id = getSelectedLayout(); if (id != null) { window.setAttribute("layoutId", id); window.close(); } }
private void returnResult(PluginDefinition definition) { if (definition != null) { childElement = createChild ? definition.createElement(parentElement, null, false) : null; if (childElement instanceof ElementUI) { ((ElementUI) childElement).bringToFront(); } window.setAttribute("pluginDefinition", definition); window.setAttribute("childElement", childElement); window.close(); } }
@EventHandler(value = "enter", target = "@textbox") @EventHandler(value = "click", target = "@btnOK") private void onCommit() { root.setAttribute("result", textbox.getValue()); root.close(); }
/** * Clicking the OK button creates a DateRangeItem object with the responses from the dialog and * closes the dialog. */ @EventHandler(value = "click", target = "btnOK") private void onClick$btnOK() { if (startDate.getValue().after(endDate.getValue())) { Datebox temp = startDate; startDate = endDate; endDate = temp; } DateRange dateRange = new DateRange(null, startDate.getValue(), endDate.getValue()); root.setAttribute("result", dateRange); root.close(); }