Examples of addListener()


Examples of org.zkoss.zk.ui.util.Configuration.addListener()

    if (_webApp == null) {
      final WebManager webman = WebManager.getWebManager(getServletContext());
      _webApp = webman.getWebApp();
      Configuration conf = _webApp.getConfiguration();
      try {
        conf.addListener(ZkFlowControllerListener.class);
        conf.addListener(ZkFlowResourceListener.class);
      } catch (Exception e) {
        //log and ignore
            if (logger.isDebugEnabled()) {
                logger.debug("Added ZK Spring Listeners Failed: " + e);
View Full Code Here

Examples of pl.net.bluesoft.rnd.processtool.ui.generic.GenericUserPortletSettingsPanel.addListener()

    else if (portletMode.equals(PortletMode.EDIT)) {
      locale = renderRequest.getLocale();
      I18NSource i18NSource = I18NSourceFactory.createI18NSource(locale);
      final GenericUserPortletSettingsPanel editPane = new GenericUserPortletSettingsPanel(
          i18NSource, getSelectedViewKeys(), getRegisteredViews());
      editPane.addListener(new GenericUserPortletSettingsPanel.SaveListener() {
        @Override
        public void onSave() {
          saveSelectedViewKeys(editPane.getSelectedViewKeys());
        }
      });
View Full Code Here

Examples of playn.core.ImageLayer.addListener()

            repeat(circle).tweenX(circle).to(width-150).in(1000).easeInOut().then().
            tweenX(circle).to(50).in(1000).easeInOut();

        // demo the shake animation
        final ImageLayer click = StyledText.span("Click to Shake", STYLE).toLayer();
        click.addListener(new Pointer.Adapter() {
            @Override public void onPointerStart (Pointer.Event event) {
                if (_shaker != null) _shaker.complete();
                else _shaker = anim.shake(click).bounds(-3, 3, -3, 0).cycleTime(25, 25).in(1000).
                         then().action(_clear).handle();
            }
View Full Code Here

Examples of se.bitcraze.crazyflie.Crazyflie.addListener()

      return;
    }
    log.info("Found: {}", Arrays.toString(uris));
    Crazyflie crazyflie = new Crazyflie();
    Logging logging = crazyflie.getLogging();
    crazyflie.addListener(new LogListener() {

      @Override
      public void valuesReceived(String name, Map<String, Object> values) {
        log.info("{}", values.toString());
      }
View Full Code Here

Examples of simtools.data.DataSource.addListener()

            try {
                minIndex = Math.max(minIndex, ds.getStartIndex());
                maxIndex = Math.min(maxIndex, ds.getLastIndex());
            } catch (UnsupportedOperation e) {
            }
            ds.addListener(this);
        }
        if (maxIndex == Long.MAX_VALUE) maxIndex = 0;
        minmaxOk=false;
    }
View Full Code Here

Examples of simtools.diagram.DiagramSelection.addListener()

            updateUndoActions();
    
        } else {
            DiagramComponent dc = (DiagramComponent) d;
            DiagramSelection sel = dc.getDiagramSelection();
            sel.addListener(this);
            selectionChanged(sel);
            setDiagramComponentSpecificsEnabled(true);
            setShapeToolEnabled(true);
           
            // update grid combo box
View Full Code Here

Examples of simtools.shapes.AbstractShape.addListener()

          io = new ObjectInputStream(bi);
          svg=(ShapesContainer)io.readObject();
          editor.addComponent(svg.getComponent());
          for (Iterator it = svg.iterator(); it.hasNext();) {
            AbstractShape abs = (AbstractShape)it.next();
            abs.addListener( (ShapeListener)svg.getComponent());
          }
             
        } catch (IOException e1) {
          e1.printStackTrace();
        } catch (ClassNotFoundException e2) {
View Full Code Here

Examples of threading.SearchThread.addListener()

   
    for (int i = 0 ; i < vipComboBox.getItemCount() ; i++)
    {
      p = vipComboBox.getItemAt(i);
      job = new SearchThread(p, low, high);
      job.addListener(integrator);
      integrator.incJob();
      pool.execute(job);
    }
   
    try
View Full Code Here

Examples of tripleplay.ui.Scroller.addListener()

                Point pt = Layer.Util.screenToLayer(content.layer, e.x(), e.y());
                click.text.update(pt.x + ", " + pt.y);
            }
        });

        scroll.addListener(new Scroller.Listener() {
            @Override public void viewChanged (IDimension contentSize, IDimension scrollSize) {}
            @Override public void positionChanged (float x, float y) {
                update(xpos, x, scroll.hrange);
                update(ypos, y, scroll.vrange);
            }
View Full Code Here

Examples of tud.gamecontroller.game.javaprover.JavaProverGameController.addListener()

    /* create game controller */
    JavaProverGameController gameController = new JavaProverGameController(match);
   
    /* add listener */
    MatchTraceBuilder matchTraceBuilder = new MatchTraceBuilder();
    gameController.addListener(matchTraceBuilder);
   
    /* run + write result */
    try {
      try {
        gameController.runGame();
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.