Examples of StateChangeListener


Examples of org.jboss.errai.otec.client.StateChangeListener

          }
        }
    );

    final ListenerRegistration listenerRegistration
        = entity.getState().addStateChangeListener(new StateChangeListener() {
      @Override
      public int getCursorPos() {
        return widget.getCursorPos();
      }

Examples of org.jboss.errai.otec.client.StateChangeListener

          }
        }
    );

    final ListenerRegistration listenerRegistration
        = entity.getState().addStateChangeListener(new StateChangeListener() {
      @Override
      public int getCursorPos() {
        return widget.getCursorPos();
      }

Examples of org.mt4j.components.StateChangeListener

              MTComponent mtCurrentComp = (MTComponent)currentComp;
             
///////////////////////////////             
              // Listen to destroy events of the clustered components, to remove them from
              // the cluster and pack the polygon.
              mtCurrentComp.addStateChangeListener(StateChange.COMPONENT_DESTROYED, new StateChangeListener(){
                public void stateChanged(StateChangeEvent evt) {
                  if (evt.getSource() instanceof MTComponent) {
                    MTComponent sourceComp = (MTComponent) evt.getSource();
                   
                    //Remove component from cluster it is in

Examples of org.mt4j.components.StateChangeListener

      }
    });
   
    //Always put last in parents children list if added to a parent,
    //so the chance is higher that this is really drawn ontop of other stuff
    this.addStateChangeListener(StateChange.ADDED_TO_PARENT, new StateChangeListener() {
      public void stateChanged(StateChangeEvent evt) {
        putLastInParentList();
      }
    });
  }

Examples of org.mt4j.components.StateChangeListener

    }else{
      applet.addScene(sceneTexture.getScene())
    }
   
   
    sceneTexture.addStateChangeListener(StateChange.COMPONENT_DESTROYED, new StateChangeListener() {
      public void stateChanged(StateChangeEvent evt) {
        destroy();
      }
    });
   

Examples of org.mt4j.components.StateChangeListener

  public synchronized void addClusterable(IdragClusterable selectable){
    dragSelectables.add(selectable);
    if (selectable instanceof MTComponent) {
      MTComponent baseComp = (MTComponent) selectable;

      baseComp.addStateChangeListener(StateChange.COMPONENT_DESTROYED, new StateChangeListener(){
        public void stateChanged(StateChangeEvent evt) {
          if (evt.getSource() instanceof IdragClusterable) {
            IdragClusterable clusterAble = (IdragClusterable) evt.getSource();
            removeClusterable(clusterAble);
            //logger.debug("Removed comp from clustergesture analyzers tracking");

Examples of org.mt4j.components.StateChangeListener

      t.setEnableCaret(true);
      t.snapToKeyboard(this);
     
      this.addTextInputListener(this.textInputListener);
      //Remove textarea from listening if destroyed
      t.addStateChangeListener(StateChange.COMPONENT_DESTROYED, new StateChangeListener() {
        public void stateChanged(StateChangeEvent evt) {
          removeTextInputListener(t);
        }
      });
    }else{

Examples of org.openfaces.event.StateChangeListener

                        " StateChange event.");

            FacesContext context = FacesContext.getCurrentInstance();
            String className = (String) type.getValue(context.getELContext());
            try {
                StateChangeListener listener = (StateChangeListener) Class.forName(className).newInstance();
                if (component instanceof FoldingPanel)
                    ((FoldingPanel) component).addStateChangeListener(listener);
            } catch (InstantiationException e) {
                throw new RuntimeException(e);
            } catch (IllegalAccessException e) {

Examples of org.openfaces.event.StateChangeListener

        if (!type.isLiteral()) {
            className = type.getValue();
        } else {
            className = type.getValue(faceletContext);
        }
        StateChangeListener listener;
        try {
            listener = (StateChangeListener) Class.forName(className).newInstance();
            ((FoldingPanel) parent).addStateChangeListener(listener);
        } catch (ClassNotFoundException e) {
            throw new RuntimeException(e);

Examples of org.openhab.core.items.StateChangeListener

    broadcaster.getBroadcasterConfig().addFilter(new PollingDelayFilter());
    broadcaster.getBroadcasterConfig().addFilter(new SendPageUpdateFilter());
    broadcaster.getBroadcasterConfig().addFilter(new DuplicateBroadcastProtectionFilter());
    broadcaster.getBroadcasterConfig().addFilter(new ResponseObjectFilter());
   
    stateChangeListener = new StateChangeListener() {
      // don't react on update events
      public void stateUpdated(Item item, State state) {
        broadcaster.broadcast(item);
        // if the group has a base item and thus might calculate its state
        // as a DecimalType or other, we also consider it to be necessary to
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.