Package org.zkoss.zk.ui.event

Examples of org.zkoss.zk.ui.event.Event


        //bind event listener and add forwards for special name pattern method
        Events.addEventListeners(target, controller);
        Components.addForwards(target, controller);
       
        //calling method annotated with @AfterCompose == @EventHandler("win.onAfterCompose")
        Events.sendEvent(new Event("onAfterCompose", target, controllerId));
      }
    }
  }
View Full Code Here


      final Execution exec = Executions.getCurrent();
      final String uuid = ((ServletRequest)exec.getNativeRequest()).getParameter("rm");
      if (uuid != null) {
        final Component popupWin = exec.getDesktop().getComponentByUuidIfAny(uuid);
        if (popupWin != null) {
          Events.postEvent(new Event("onRemoveLoginWin", popupWin));
        }
      }
    }
View Full Code Here

  public Object getValue(ELContext elContext, Object base, Object property) {
    if (base == null) {
      final Execution exec = Executions.getCurrent();
      Object value = null;
      if (exec != null) {
        final Event event = (Event) exec.getAttribute("actionEvent");
        if (event != null && property instanceof String) {
          //resolve implicit object
          value = resolveZKImplicit(event, exec, (String)property);
           
          //resolve other ZK object
          if (value == null) {
            final Component comp = (Component) event.getTarget();
            value = comp.getAttribute((String)property, false);
          }
          if (value != null) {
            elContext.setPropertyResolved(true);
          }
View Full Code Here

public class DetachComponentComposer extends GenericForwardComposer {
 
  public void onClick$button(){
    Label label  =new Label();
    Events.sendEvent(label, new Event("onTest",label));
  }
View Full Code Here

 
  public void onClick$button2(){
    Window inner  =new Window();
    Window outer = new Window();
    outer.appendChild(inner);
    Events.sendEvent(inner, new Event("onTest",inner));
  }
View Full Code Here

        // get the first entry and cast them to the needed object
        setSelectedOffice((Office) lml.get(0));

        // call the onSelect Event for showing the objects data in the
        // statusBar
        Events.sendEvent(new Event("onSelect", getListBoxOffice(), getSelectedOffice()));
      }
    }

  }
View Full Code Here

      setSelectedOffice(anOffice);
      setOffice(anOffice);

      // check first, if the tabs are created
      if (getOfficeMainCtrl().getOfficeDetailCtrl() == null) {
        Events.sendEvent(new Event("onSelect", getOfficeMainCtrl().tabOfficeDetail, null));
        // if we work with spring beanCreation than we must check a
        // little bit deeper, because the Controller are preCreated ?
      } else if (getOfficeMainCtrl().getOfficeDetailCtrl().getBinder() == null) {
        Events.sendEvent(new Event("onSelect", getOfficeMainCtrl().tabOfficeDetail, null));
      }

      Events.sendEvent(new Event("onSelect", getOfficeMainCtrl().tabOfficeDetail, anOffice));
    }
  }
View Full Code Here

      return;
    }

    // check first, if the tabs are created
    if (getOfficeMainCtrl().getOfficeDetailCtrl() == null) {
      Events.sendEvent(new Event("onSelect", getOfficeMainCtrl().tabOfficeDetail, null));
      // if we work with spring beanCreation than we must check a little
      // bit deeper, because the Controller are preCreated ?
    } else if (getOfficeMainCtrl().getOfficeDetailCtrl().getBinder() == null) {
      Events.sendEvent(new Event("onSelect", getOfficeMainCtrl().tabOfficeDetail, null));
    }

    // INIT ALL RELATED Queries/OBJECTS/LISTS NEW
    getOfficeMainCtrl().getOfficeDetailCtrl().setSelectedOffice(anOffice);
    getOfficeMainCtrl().getOfficeDetailCtrl().setOffice(anOffice);

    // store the selected bean values as current
    getOfficeMainCtrl().doStoreInitValues();

    // show the objects data in the statusBar
    String str = Labels.getLabel("common.Office") + ": " + anOffice.getFilBezeichnung();
    EventQueues.lookup("selectedObjectEventQueue", EventQueues.DESKTOP, true).publish(new Event("onChangeSelectedObject", null, str));

  }
View Full Code Here

    // get the current Tab for later checking if we must change it
    final Tab currentTab = this.tabbox_BranchMain.getSelectedTab();

    // check first, if the tabs are created, if not than create it
    if (getBranchDetailCtrl() == null) {
      Events.sendEvent(new Event("onSelect", this.tabBranchDetail, null));
      // if we work with spring beanCreation than we must check a little
      // bit deeper, because the Controller are preCreated ?
    } else if (getBranchDetailCtrl().getBinder() == null) {
      Events.sendEvent(new Event("onSelect", this.tabBranchDetail, null));
    }

    // check if the tab is one of the Detail tabs. If so do not change the
    // selection of it
    if (!currentTab.equals(this.tabBranchDetail)) {
View Full Code Here

  private void doDelete(Event event) throws InterruptedException {
    // logger.debug(event.toString());

    // check first, if the tabs are created, if not than create them
    if (getBranchDetailCtrl().getBinder() == null) {
      Events.sendEvent(new Event("onSelect", this.tabBranchDetail, null));
    }

    // check first, if the tabs are created
    if (getBranchDetailCtrl().getBinder() == null) {
      return;
View Full Code Here

TOP

Related Classes of org.zkoss.zk.ui.event.Event

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.