Examples of addListener()


Examples of io.undertow.servlet.api.DeploymentInfo.addListener()

        final DeploymentInfo deploymentInfo = new DeploymentInfo();
        deploymentInfo.setClassLoader(ParticipantService.class.getClassLoader());
        deploymentInfo.setContextPath(contextPath);
        deploymentInfo.setDeploymentName(name);
        deploymentInfo.addServlets(getResteasyServlet());
        deploymentInfo.addListener(getResteasyListener());
        deploymentInfo.addListener(getRestATListener());

        for (Entry<String, String> entry : initialParameters.entrySet()) {
            deploymentInfo.addInitParameter(entry.getKey(), entry.getValue());
        }
View Full Code Here

Examples of it.baeyens.arduino.arduino.Serial.addListener()

      int colorindex = mySerialConnections.size();
      Serial newSerial = new Serial(ComPort, BaudRate);
      if (newSerial.IsConnected()) {
    newSerial.registerService();
    SerialListener theListener = new SerialListener(this, colorindex);
    newSerial.addListener(theListener);
    theListener.event(System.getProperty("line.separator") + "Connected to " + ComPort + " at " + BaudRate
      + System.getProperty("line.separator"));
    mySerialConnections.put(newSerial, theListener);
    return;
      }
View Full Code Here

Examples of it.hakvoort.bdf.BDFReader.addListener()

   
    // get the bdf reader
    BDFReader reader = bdf.getReader();
   
    // register this class as listener on the reader
    reader.addListener(this);
   
    // start the reader
    reader.start();
  }
 
View Full Code Here

Examples of it.hakvoort.bdf.network.BDFClient.addListener()

    // create a BDFNetworkClient
    BDFClient client = new BDFClient("localhost", 4322, 33);
   
    // register this class as listener on the client
    client.addListener(this);

    // connect the client to the BDF server
    client.connect();
  }
View Full Code Here

Examples of it.hakvoort.bdf2tcp.BDFNetworkClient.addListener()

    // The number of channels which are send by the server and read by the client must be the same! If not, data will be incorrect.
    int channels = reader.getHeader().getNumChannels();

    // create a BDFNetworkClient
    BDFNetworkClient client = new BDFNetworkClient("localhost", 4321, channels);
    client.addListener(this);

    // connect the client
    client.connect();
  }
 
View Full Code Here

Examples of it.hakvoort.nia.NiaDevice2.addListener()

  public static void main(String[] args) {
    // create a NiaDevice or NiaDevice2
    NiaDevice2 nia = new NiaDevice2();
   
    // register this class as listener
    nia.addListener(new ExampleNiaReader());
   
    // set signed to false
    nia.setSigned(false);

    // start the NiaDevice
View Full Code Here

Examples of it.hakvoort.nia2tcp.NiaNetworkClient.addListener()

public class NiaNetworkClientExample implements NiaListener {

  public NiaNetworkClientExample() {
    NiaNetworkClient client = new NiaNetworkClient("localhost", 4321);
    client.addListener(this);
   
    client.connect();
  }
 
  @Override
View Full Code Here

Examples of javafx.beans.binding.BooleanBinding.addListener()

                        datePickerIsInvalid
                )
        );

        // Highlight the date picker in red if it's empty or in the future, so the user knows why restore is disabled.
        datePickerIsInvalid.addListener((dp, old, cur) -> {
            if (cur) {
                datePicker.getStyleClass().add("validation_error");
            } else {
                datePicker.getStyleClass().remove("validation_error");
            }
View Full Code Here

Examples of javafx.beans.property.Property.addListener()

                Property property = (Property) field.get(model);

                if (property instanceof ListProperty) {
                    ((ListProperty) property).addListener((ListChangeListener) this);
                } else {
                    property.addListener(this);
                }
            }
        } catch (Exception e) {
            throw I.quiet(e);
        }
View Full Code Here

Examples of javafx.collections.ObservableMap.addListener()

            // intercept the binding on the script so we can
            // be notified of changes.
            Map originalVMap = script.getBinding().getVariables();
            originalVMap.put(SCRIPT_VAR, script);
            ObservableMap obsVariables = FXCollections.observableMap(originalVMap);
            obsVariables.addListener(instance);
            Binding newBinding = new Binding(obsVariables);
            script.setBinding(newBinding);
        }
        Property property = instanceMap.get(propertyName);
        if(property == null) {
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.