Package fr.soleil.globalscreen.tangowidget.attribute

Examples of fr.soleil.globalscreen.tangowidget.attribute.AttributeNumberScalarWheelSwitch.stop()


        // assert device is updated when bean change value
        controlWriteTxtFieldUpdateDoubleAtt(upButtons, downButtons, m_deviceProxy, widget,
                attributeName, false);

        // clean
        widget.stop();
        jf1.dispose();
    }

    private void controlWriteTxtFieldUpdateDoubleAtt(final List<ArrowButton> upButtons,
            final List<ArrowButton> downButtons, final DeviceProxy devProx,
View Full Code Here


      }
      // Configuration test
      invalidDeviceConfigTest(widget, i, aec, !autoStart);

      // clear
      widget.stop();
      jf.remove(widget);// clear jframe

    }
  }
View Full Code Here

      assertFalse("Button shouldn't be enable", upButtons.get(i)
          .isEnabled() || downButtons.get(i).isEnabled());
    }

    // clean
    widget.stop();
    jf1.dispose();
  }

  /**
   * test the completeAttributeName with a valid configuration before or after
View Full Code Here

    // assert device is updated when bean change value
    controlWriteTxtFieldUpdateDoubleAtt(upButtons, downButtons,
        m_deviceProxy, widget, attributeName, false);

    // clean
    widget.stop();
    jf1.dispose();
  }

  private void controlWriteTxtFieldUpdateDoubleAtt(
      final List<ArrowButton> upButtons,
View Full Code Here

        .write_attribute(new DeviceAttribute(attributeName, value));
    final String format = "%7.3f";
    assertTrue(waitLabelText(label, formatValue(value, format), 5000));

    // stop widget and check is disconected
    widget.stop();
    Sleeper.SECONDS.sleep(2);
    assertEquals("+X.XX", label.getText());

    // restart and bean show the same value as device
    widget.start();
View Full Code Here

    m_deviceProxy
        .write_attribute(new DeviceAttribute(attributeName, value));
    assertTrue("write failed after restart",
        waitLabelText(label, formatValue(value, format), 5000));

    widget.stop();
    jf1.dispose();

  }
}
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.