Package org.zkoss.zk.ui

Examples of org.zkoss.zk.ui.SuspendNotAllowedException


   */
  public void doModal()
  throws InterruptedException, SuspendNotAllowedException {
    Desktop desktop = getDesktop();
    if (desktop == null)
      throw new SuspendNotAllowedException("Not attached, "+this);

    if (!desktop.getWebApp().getConfiguration().isEventThreadEnabled()) {
      doHighlighted();
      return;
    }

    checkOverlappable(MODAL);

    if (_mode != MODAL) {
      if (!Events.inEventListener())
        throw new SuspendNotAllowedException("doModal must be called in an event listener");

      int oldmode = _mode;
      boolean oldvisi = isVisible();

      setVisible(true); //if MODAL, it must be visible; vice versa
View Full Code Here

TOP

Related Classes of org.zkoss.zk.ui.SuspendNotAllowedException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.