Package tangowidget.util.listenerimpl

Examples of tangowidget.util.listenerimpl.IWidgetListenerImpl


  private void controlDoubleValueChanged(final JButton jbEnvoyer,
      final JTextField txtField, final AttributeNumberScalarInput widget,
      final String value1, final String value2) throws DevFailed {

    final IWidgetListenerImpl listenerTest = new IWidgetListenerImpl();
    widget.addWidgetListener(listenerTest);

    writeInTextField(txtField, jbEnvoyer, value1);

    Assert.assertTrue(listenerTest.isLaterNotified("doubleValueChanged",
        5000L));

    Assert.assertTrue(new Double(Double.parseDouble(value1))
        .equals(listenerTest.getNotification("doubleValueChanged")));

    // v�rifier que le remove du listener est correctement trait�
    widget.removeWidgetListener(listenerTest);
    listenerTest.reset();

    writeInTextField(txtField, jbEnvoyer, value2);

    Assert.assertTrue(!listenerTest.isNotified("doubleValueChanged"));
  }
View Full Code Here


    private void controlDoubleValueChanged(final JButton jbEnvoyer, final JTextField txtField,
            final AttributeNumberScalarInput widget, final String value1, final String value2)
            throws DevFailed {

        final IWidgetListenerImpl listenerTest = new IWidgetListenerImpl();
        widget.addWidgetListener(listenerTest);

        writeInTextField(txtField, jbEnvoyer, value1);

        Assert.assertTrue(listenerTest.isLaterNotified("doubleValueChanged", 5000L));

        Assert.assertTrue(new Double(Double.parseDouble(value1)).equals(listenerTest
                .getNotification("doubleValueChanged")));

        // v�rifier que le remove du listener est correctement trait�
        widget.removeWidgetListener(listenerTest);
        listenerTest.reset();

        writeInTextField(txtField, jbEnvoyer, value2);

        Assert.assertTrue(!listenerTest.isNotified("doubleValueChanged"));
    }
View Full Code Here

TOP

Related Classes of tangowidget.util.listenerimpl.IWidgetListenerImpl

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.