Package org.openhab.core.items

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
View Full Code Here


    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) {
                    // 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
                    // send an update to the client as the label of the item might have changed,
View Full Code Here

TOP

Related Classes of org.openhab.core.items.StateChangeListener

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.