Package tangowidget.util

Examples of tangowidget.util.InputListener


        f.setDeviceName(tmpDeviceName);
        f.setCommandName(tmpCommandName);
        f.setAskConfirmation(setConfirmation);
        f.setDefaultHelpText(true);

        f.addInputListener(new InputListener() {
            @Override
            public void stringValueChange(final String value) {
                System.out.println("stringValueChanged : " + value);
            }
View Full Code Here


        final CommandDeviceComboCometeV2 w = new CommandDeviceComboCometeV2.Builder(tmpDeviceName)
                .selectedAttrCommand(tmpSelectedAttributCommand).userEnable(tmpUserEnable)
                .confirmation(tmpConfirmation).jframe(new JFrame()).build();

        w.addInputListener(new InputListener() {

            @Override
            public void stringValueChange(String value) {
                System.out
                        .println("CommandDeviceComboCometeV2 : InputListener -> stringValueChange = "
View Full Code Here

            .println("AttributeBooleanComboCometeV2 -> readBooleanValueChange : "
                + value);
      }
    });

    f.addInputListener(new InputListener() {

      @Override
      public void stringValueChange(final String value) {
        System.out
            .println("AttributeBooleanComboCometeV2 -> stringValueChange : "
View Full Code Here

    }
    f.setDisplayReadValue(true);
    f.setValueEditable(false);
    f.start();

    f.addInputListener(new InputListener() {

      @Override
      public void stringValueChange(final String value) {
        System.out.println("stringValueChange" + value);
      }
View Full Code Here

    }

    final StringScalarPanel w = new StringScalarPanel.Builder(
        tmpDeviceName, tmpAttributeName).alarmEnable(tmpAlarmEnabled)
        .userEnable(tmpUserEnabled).jframe(new JFrame()).build();
    w.addInputListener(new InputListener() {

      @Override
      public void actionPerformed(final String text) {
        System.out.println("InputListener===> actionPerformed " + text);
      }
View Full Code Here

            @Override
            public void stateChange(String value) {
                System.out.println("BooleanAttributeListener new1 -> stateChange " + value);
            }
        });
        f.addInputListener(new InputListener() {
            @Override
            public void stringValueChange(String value) {
                System.out.println("InputListener new1 -> stringValueChange " + value);
            }
View Full Code Here

            @Override
            public void labelChange(String value) {
                System.out.println("ScalarAttributeListener -> labelChange = " + value);
            }
        });
        f.addInputListener(new InputListener() {

            @Override
            public void stringValueChange(String value) {
                System.out.println("InputListener -> stringValueChange = " + value);
            }
View Full Code Here

            public void readBooleanValueChange(boolean value) {
                System.out.println("BooleanAttributeListener ===> readBooleanValueChange " + value);

            }
        });
        f.addInputListener(new InputListener() {

            @Override
            public void stringValueChange(String value) {
                System.out.println("InputListener ===> stringValueChange " + value);

            }

            @Override
            public void stepValueChange(double value) {
                // TODO Auto-generated method stub

            }

            @Override
            public void numberValueChange(double value) {
                System.out.println("InputListener ===> numberValueChange " + value);

            }

            @Override
            public void booleanValueChange(boolean value) {
                // TODO Auto-generated method stub

            }

            @Override
            public void actionPerformed(String text) {
                System.out.println("InputListener ===> actionPerformed " + text);

            }
        });
        f.start();

        AttributeScalarFieldCometeV2 f2 = new AttributeScalarFieldCometeV2();
        f2.setDeviceName(tmpDeviceName);
        f2.setAttributeName(tmpAttributeName);
        f2.setDisplayReadValue(false);
        f2.setValueEditable(true);
        f2.setAlarmEnabled(true);
        f2.setAskConfirmation(true);
        f2.setDefaultHelpText(true);
        f2.addScalarAttributeListener(new ScalarAttributeListener() {

            @Override
            public void writeStringValueChange(String value) {
                System.out.println("ScalarAttributeListener ===> writeStringValueChange " + value);

            }

            @Override
            public void writeNumberValueChange(double value) {
                System.out.println("ScalarAttributeListener ===> writeNumberValueChange " + value);

            }

            @Override
            public void veryMinAlarmChange(double value) {
                // TODO Auto-generated method stub

            }

            @Override
            public void veryMaxAlarmChange(double value) {
                // TODO Auto-generated method stub

            }

            @Override
            public void unitChange(String value) {
                // TODO Auto-generated method stub

            }

            @Override
            public void stateChange(String value) {
                System.out.println("ScalarAttributeListener ===> stateChange " + value);

            }

            @Override
            public void readStringValueChange(String value) {
                System.out.println("ScalarAttributeListener ===> readStringValueChange " + value);

            }

            @Override
            public void readNumberValueChange(double value) {
                System.out.println("ScalarAttributeListener ===> readNumberValueChange " + value);

            }

            @Override
            public void minValueChange(double value) {
                // TODO Auto-generated method stub

            }

            @Override
            public void minAlarmChange(double value) {
                // TODO Auto-generated method stub

            }

            @Override
            public void maxValueChange(double value) {
                // TODO Auto-generated method stub

            }

            @Override
            public void maxAlarmChange(double value) {
                // TODO Auto-generated method stub

            }

            @Override
            public void labelChange(String value) {
                // TODO Auto-generated method stub

            }
        });
        f2.addBooleanAttributeListener(new BooleanAttributeListener() {

            @Override
            public void writeBooleanValueChange(boolean value) {
                System.out
                        .println("BooleanAttributeListener ===> writeBooleanValueChange " + value);

            }

            @Override
            public void stateChange(String value) {
                // TODO Auto-generated method stub

            }

            @Override
            public void readBooleanValueChange(boolean value) {
                System.out.println("BooleanAttributeListener ===> readBooleanValueChange " + value);

            }
        });
        f2.addInputListener(new InputListener() {

            @Override
            public void stringValueChange(String value) {
                System.out.println("InputListener ===> stringValueChange " + value);
View Full Code Here

    final CommandDeviceComboCometeV2 w = new CommandDeviceComboCometeV2.Builder(
        tmpDeviceName).selectedAttrCommand(tmpSelectedAttributCommand)
        .userEnable(tmpUserEnable).confirmation(tmpConfirmation)
        .jframe(new JFrame()).build();

    w.addInputListener(new InputListener() {

      @Override
      public void stringValueChange(final String value) {
        System.out
            .println("CommandDeviceComboCometeV2 : InputListener -> stringValueChange = "
View Full Code Here

            @Override
            public void labelChange(String value) {
                System.out.println("ScalarAttributeListener -> labelChange = " + value);
            }
        });
        f.addInputListener(new InputListener() {

            @Override
            public void stringValueChange(String value) {
                System.out.println("InputListener -> stringValueChange = " + value);
            }
View Full Code Here

TOP

Related Classes of tangowidget.util.InputListener

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.