Package fr.imag.adele.apam.test.lights.devices

Examples of fr.imag.adele.apam.test.lights.devices.SimpleButton


     *
     * @param button
     */

    public void newButton(Instance inst) {
  SimpleButton btn = (SimpleButton) inst.getServiceObject();
  logger.debug("newButton(SimpleButton button : " + btn.getName()
    + " in " + btn.getLocation() + ")");
  rebuildButtonsColumn();
    }
View Full Code Here


    + " buttons to add to the list");

  if (theButtons != null && theButtons.size() > 0) {
      Iterator<SimpleButton> it = theButtons.iterator();
      while (it.hasNext()) {
    SimpleButton btn = it.next();
    logger.debug("rebuildButtonsColumn() -> " + btn.getName()
      + " is in " + btn.getLocation());

      }
  }
    }
View Full Code Here

    /**
     * CallBack method on dependency resolution
     */
    public void removeButton(Instance inst) {
  SimpleButton btn = (SimpleButton) inst.getServiceObject();
  logger.debug("removeButton(SimpleButton button : " + btn.getName()
    + " in " + btn.getLocation() + ")");
  rebuildButtonsColumn();
    }
View Full Code Here

  logger.info("testPressButton(), Location button to test " + location);
  if (theButtons != null && theButtons.size() > 0) {
      boolean found = false;
      Iterator<SimpleButton> it = theButtons.iterator();
      while (it.hasNext() && !found) {
    SimpleButton btn = it.next();
    if (btn.getLocation().equals(location)) {
        logger.debug("testPressButton(), found button to test");
        found = true;
        btn.pressButton();
    }
      }
  }
    }
View Full Code Here

TOP

Related Classes of fr.imag.adele.apam.test.lights.devices.SimpleButton

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.