Tabnine Logo
Window.getPage
Code IndexAdd Tabnine to your IDE (free)

How to use
getPage
method
in
org.zkoss.zul.Window

Best Java code snippets using org.zkoss.zul.Window.getPage (Showing top 4 results out of 315)

origin: stackoverflow.com

if (view instanceof Window) {
   Window win = (Window) view;
   PageCtrl pc = (PageCtrl) win.getPage();
   pc.addBeforeHeadTags("<script type=\"text/javascript\">" + "(function(i,s,o,g,r,a,m)"
       + "{i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){"
       + "(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();" + "a=s.createElement(o),"
       + "m=s.getElementsByTagName(o)[0];" + "a.async=1;a.src=g;m.parentNode.insertBefore(a,m)" + "})"
       + "(window,document,'script','//www.google-analytics.com/analytics.js','ga');" + "ga('create', "
       + this.trackingID + ", 'auto'); " + "ga('send', 'pageview');" + "</script>");
 } else {
   throw new UiException("This view model must be applied from a Window component.");
 }
origin: org.zkoss.zk/zul

public void onPageDetached(Page page) {
  super.onPageDetached(page);
  if (_mode == MODAL && getPage() == null)
    leaveModal(OVERLAPPED);
}
origin: org.carewebframework/org.carewebframework.vista.ui.context.encounter

/**
 * Displays the encounter selection dialog.
 *
 * @param flags The encounter flags.
 */
public static void execute(EncounterFlag... flags) {
  String resource = Constants.RESOURCE_PREFIX + "encounterSelection.zul";
  Window dlg = (Window) FrameworkUtil.getAttribute(resource);
  
  if (dlg == null || dlg.getPage() == null) {
    dlg = PopupDialog.popup(resource, true, true, false);
    FrameworkUtil.setAttribute(resource, dlg);
  }
  
  try {
    EncounterSelection sel = ZKUtil.findChild(dlg, EncounterSelection.class);
    sel.setEncounterFlags(EncounterFlag.flags(flags));
    dlg.doModal();
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
}

origin: org.carewebframework/org.carewebframework.vista.ui.encounter

/**
 * Displays the encounter selection dialog.
 *
 * @param flags The encounter flags.
 */
public static void execute(EncounterFlag... flags) {
  try {
    Window dlg = (Window) FrameworkUtil.getAttribute(SELECTION_DIALOG);
    
    if (dlg == null || dlg.getPage() == null) {
      dlg = PopupDialog.popup(SELECTION_DIALOG, true, true, false);
      FrameworkUtil.setAttribute(SELECTION_DIALOG, dlg);
    }
    
    MainController sel = (MainController) getController(dlg);
    sel.setEncounterFlags(EncounterFlag.flags(flags));
    
    if (sel.needsInit) {
      sel.init();
    }
    
    dlg.doModal();
  } catch (Exception e) {
    FrameworkUtil.setAttribute(SELECTION_DIALOG, null);
    throw MiscUtil.toUnchecked(e);
  }
}

org.zkoss.zulWindowgetPage

Popular methods of Window

  • doModal
    Makes this window as a modal dialog. It will automatically center the window (ignoring #getLeft and
  • detach
  • getAttribute
  • setTitle
    Sets the title.
  • getCaption
    Returns the caption of this window.
  • getChildren
  • getTitle
    Returns the title. Besides this attribute, you could use Caption to define a more sophisticated capt
  • isMaximizable
    Returns whether to display the maximizing button and allow the user to maximize the window.Default:
  • isMinimizable
    Returns whether to display the minimizing button and allow the user to minimize the window.Default:
  • setAttribute
  • setVisible
    Changes the visibility of the window.Note if you turned on the event thread: If a modal dialog becom
  • afterUnmarshal
  • setVisible,
  • afterUnmarshal,
  • checkOverlappable,
  • doEmbedded,
  • doHighlighted,
  • doOverlapped,
  • doPopup,
  • enterModal,
  • getBorder

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JOptionPane (javax.swing)
  • Top plugins for Android Studio
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