Examples of AuService


Examples of org.zkoss.zk.au.AuService

* @since 5.0.1
*/
public class DesktopInit implements org.zkoss.zk.ui.util.DesktopInit {
 
  public void init(final Desktop desktop, Object request) throws Exception {
    desktop.addListener(new AuService() {

      public boolean service(AuRequest request, boolean everError) {
        final String cmd = request.getCommand();
        if (cmd.equals("onZTLService")) {
          String zscript = (String) request.getData().get("");
View Full Code Here

Examples of org.zkoss.zk.au.AuService

      //Note: removeListener might be called when invoking svc.service()
      final Set called = new IdentityHashSet();
      l_svc:
      for (;;) {
        for (Iterator it = _ausvcs.iterator(); ;) {
          final AuService svc;
          try {
            if (!it.hasNext())
              break l_svc; //done
            svc = (AuService)it.next();
          } catch (java.util.ConcurrentModificationException ex) {
            break; //loop again
          }
          if (called.add(svc)
          && svc.service(request, everError))
            return; //done
        }
      }
    }

    final Component comp = request.getComponent();
    if (comp != null) {
      final AuService svc = comp.getAuService();
      if (svc == null || !svc.service(request, everError))
        ((ComponentCtrl)comp).service(request, everError);
      return; //done (it's comp's job to handle it)
    }

    final String cmd = request.getCommand();
View Full Code Here

Examples of org.zkoss.zk.au.AuService

        queueListComponent = new QueueListComponent(this, timeTracker,
                treeModel);

        leftPane = new LimitingResourcesLeftPane(treeModel);

        setAuService(new AuService(){
            public boolean service(AuRequest request, boolean everError){
                String command = request.getCommand();
                int zoomindex;
                int scrollLeft;
View Full Code Here

Examples of org.zkoss.zk.au.AuService

                invalidate();
            }

        };
        this.task.addReloadListener(reloadResourcesTextRequested);
        setAuService(new AuService(){
            public boolean service(AuRequest request, boolean everError){
                String command = request.getCommand();
                final TaskComponent ta;

                if (command.equals("onUpdatePosition")){
View Full Code Here

Examples of org.zkoss.zk.au.AuService

        PROFILING_LOG
                .debug("it took doing the setup of components and adding them: "
                        + (System.currentTimeMillis() - timeSetupingAndAddingComponents)
                        + " ms");

        setAuService(new AuService(){
            public boolean service(AuRequest request, boolean everError){
                String command = request.getCommand();
                String[] requestData;
                int zoomindex;
                int scrollLeft;
View Full Code Here

Examples of org.zkoss.zk.au.AuService

    private void initListbox() {
        listbox.setModel(getSubModel());
        listbox.setItemRenderer(multipleFiltersFinder.getItemRenderer());
        addHeaders();

        setAuService(new AuService() {
            @Override
            public boolean service(AuRequest request, boolean everError) {
                String command = request.getCommand();
                if (command.equals("closeBandbox")) {
                    pickElementFromListAndCloseBandbox();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.