Tabnine Logo
PopupDialog
Code IndexAdd Tabnine to your IDE (free)

How to use
PopupDialog
in
org.carewebframework.ui.dialog

Best Java code snippets using org.carewebframework.ui.dialog.PopupDialog (Showing top 14 results out of 315)

origin: org.carewebframework/org.carewebframework.ui.core

/**
 * Can be used to popup any page as a modal dialog.
 *
 * @param fspPage Url of page.
 * @param closable If true, window closure button appears.
 * @param sizable If true, window sizing grips appear.
 * @param show If true, the window is displayed modally. If false, the window is created but not
 *            displayed.
 * @return Reference to the opened window, if successful.
 */
public static Window popup(String fspPage, boolean closable, boolean sizable, boolean show) {
  return PopupDialog.show(fspPage, null, closable, sizable, show, null);
}

origin: org.carewebframework/org.carewebframework.ui.core

private void loadDefaults() {
  //setContentStyle("overflow:auto");
  setVisible(false);
  setClosable(true);
  setSizable(true);
  setMaximizable(true);
  addEventListener(ResizeEvent.TYPE, (event) -> {
    ResizeEvent sizeEvent = (ResizeEvent) event;
    onResize(sizeEvent.getHeight(), sizeEvent.getWidth());
  });
}

origin: org.carewebframework/org.carewebframework.ui.core

/**
 * Closes the window with the specified cancel status.
 * 
 * @param canceled Cancel status for the closed window.
 */
public void close(boolean canceled) {
  this.cancelled = canceled;
  close();
}

origin: org.carewebframework/org.carewebframework.ui.core

/**
 * Create popup window with specified parent and title and with default attributes. Defaults are
 * used: reference loadDefaults()
 * 
 * @param owner Component that requested creation (may be null)
 * @param title Window title
 */
public PopupDialog(BaseComponent owner, String title) {
  super();
  loadDefaults();
  setTitle(title);
  
  if (owner != null) {
    setParent(owner.getPage());
  } else {
    setParent(ExecutionContext.getPage());
  }
}

origin: org.carewebframework/org.carewebframework.ui.core

/**
 * Show the window modally.
 * 
 * @param closeListener The close listener.
 */
public void show(IEventListener closeListener) {
  try {
    modal(closeListener);
  } catch (Exception e) {}
}

origin: org.carewebframework/org.carewebframework.ui.core

public PopupDialog() {
  super();
  loadDefaults();
}

origin: org.carewebframework/org.carewebframework.shell

/**
 * Invokes the layout manager dialog.
 *
 * @param manage If true, open in management mode; otherwise, in selection mode.
 * @param deflt Default layout name.
 * @param closeListener Close event listener.
 */
public static void show(boolean manage, String deflt, IEventListener closeListener) {
  Map<String, Object> args = new HashMap<>();
  args.put("manage", manage);
  args.put("deflt", deflt);
  PopupDialog.show(RESOURCE_PREFIX + "layoutManager.fsp", args, true, true, true, closeListener);
}

origin: org.carewebframework/org.carewebframework.ui.core

/**
 * Display a detail dialog for a single manifest entry.
 * 
 * @param manifestItem The row to display. If null, all manifests are displayed.
 */
private static void execute(ManifestItem manifestItem) {
  Map<String, Object> args = new HashMap<>();
  args.put("manifestItem", manifestItem);
  PopupDialog.show(CWFUtil.getResourcePath(ManifestViewer.class) + "manifestViewer.fsp", args, true, false, true,
    null);
}

origin: org.carewebframework/org.carewebframework.ui.core

/**
 * Creates and displays the form.
 *
 * @param form Url of the form.
 * @param domainObject The domain object to be modified.
 * @return True if changes were committed. False if canceled.
 */
protected static boolean execute(String form, Object domainObject) {
  Map<String, Object> args = new HashMap<>();
  args.put("domainObject", domainObject);
  BaseComponent dlg = PopupDialog.show(form, args, true, false, true, null);
  return dlg.getAttribute("cancelled", false);
}

origin: org.carewebframework/org.carewebframework.ui.core

/**
 * Show the dialog, loading the specified document.
 *
 * @param document The XML document.
 * @param parent If specified, show viewer in embedded mode. Otherwise, show as modal dialog.
 * @return The dialog.
 */
public static Window showXML(Document document, BaseUIComponent parent) {
  Map<String, Object> args = Collections.singletonMap("document", document);
  boolean modal = parent == null;
  Window dialog = PopupDialog.show(XMLConstants.VIEW_DIALOG, args, modal, modal, modal, null);
  
  if (parent != null) {
    dialog.setParent(parent);
  }
  
  return dialog;
}
origin: org.carewebframework/org.carewebframework.plugin.chat

/**
 * Creates a chat session bound to the specified session id.
 *
 * @param sessionId The chat session id.
 * @param originator If true, this user is originating the chat session.
 * @return The controller for the chat session.
 */
protected static SessionController create(String sessionId, boolean originator) {
  Map<String, Object> args = new HashMap<>();
  args.put("id", sessionId);
  args.put("title", StrUtil.formatMessage("@cwf.chat.session.title"));
  args.put("originator", originator ? true : null);
  Window dlg = PopupDialog.show(DIALOG, args, true, true, false, null);
  return (SessionController) FrameworkController.getController(dlg);
}

origin: org.carewebframework/org.carewebframework.ui.core

/**
 * Displays the dialog.
 *
 * @param text The text or HTML content. HTML content is indicated by prefixing with the html
 *            tag.
 * @param title Dialog title.
 * @param allowPrint If true, a print button is provided.
 * @param asModal If true, open as modal; otherwise, as popup.
 * @param callback Callback when dialog is closed.
 * @return The created dialog.
 */
public static Window show(String text, String title, boolean allowPrint, boolean asModal, IEventListener callback) {
  Map<String, Object> args = new HashMap<>();
  args.put("text", text);
  args.put("title", title);
  args.put("allowPrint", allowPrint);
  Window dialog = PopupDialog.show(DialogConstants.RESOURCE_PREFIX + "reportDialog.fsp", args, true, true, false,
    null);
  if (asModal) {
    dialog.modal(callback);
  } else {
    dialog.popup(callback);
  }
  return dialog;
}
origin: org.carewebframework/org.carewebframework.plugin.chat

/**
 * Displays the participant invitation dialog.
 *
 * @param sessionId The id of the chat session making the invitation request.
 * @param exclusions List of participants that should be excluded from user selection.
 * @param callback Reports the list of participants that were sent invitations, or null if the
 *            dialog was cancelled.
 */
@SuppressWarnings("unchecked")
public static void show(String sessionId, Collection<IPublisherInfo> exclusions,
            IResponseCallback<Collection<IPublisherInfo>> callback) {
  Map<String, Object> args = new HashMap<>();
  args.put("sessionId", sessionId);
  args.put("exclusions", exclusions);
  PopupDialog.show(DIALOG, args, true, true, true, (event) -> {
    Collection<IPublisherInfo> invitees = (Collection<IPublisherInfo>) event.getTarget().getAttribute("invitees");
    IResponseCallback.invoke(callback, invitees);
  });
}

origin: org.hspconsortium.carewebframework/cwf-ui-reporting

/**
 * Show the popup dialog, populating it with detail information for the specified data object.
 */
@Override
public void show() {
  addRows();
  
  if (debug) {
    debugObject(dataObject, false);
  }
  
  if (grid.getRows().getChildren().size() > 20) {
    grid.setHeight("600px");
  }
  
  super.show();
}

org.carewebframework.ui.dialogPopupDialog

Javadoc

Base class for a popup window.

Most used methods

  • show
    Show the window modally.
  • addEventListener
  • close
    Closes the window with the specified cancel status.
  • loadDefaults
  • modal
  • onResize
    Fired when the window is resized. Override to perform any special reformatting.
  • setClosable
  • setMaximizable
  • setParent
  • setSizable
  • setTitle
  • setVisible
  • setTitle,
  • setVisible

Popular in Java

  • Finding current android device location
  • notifyDataSetChanged (ArrayAdapter)
  • getSystemService (Context)
  • getApplicationContext (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now