public abstract class AbstractListenerLink extends java.lang.Object implements Link
v2.1.1 Gordio - SERVICE PACK 1
project Ardulink http://www.ardulink.org/Constructor and Description |
---|
AbstractListenerLink() |
Modifier and Type | Method and Description |
---|---|
Link |
addConnectionListener(ConnectionListener connectionListener) |
Link |
addCustomListener(CustomListener listener) |
Link |
addListener(EventListener listener) |
Link |
addRplyListener(RplyListener listener) |
void |
close() |
void |
deregisterAllEventListeners() |
void |
fireConnectionLost() |
void |
fireCustomReceived(CustomEvent event) |
void |
fireReconnected() |
void |
fireReplyReceived(RplyEvent event) |
void |
fireStateChanged(AnalogPinValueChangedEvent event) |
void |
fireStateChanged(DigitalPinValueChangedEvent event) |
boolean |
hasRplyListeners() |
Link |
removeConnectionListener(ConnectionListener connectionListener) |
Link |
removeCustomListener(CustomListener listener) |
Link |
removeListener(EventListener listener) |
Link |
removeRplyListener(RplyListener listener) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sendCustomMessage, sendKeyPressEvent, sendNoTone, sendTone, startListening, stopListening, switchAnalogPin, switchDigitalPin
public Link addListener(EventListener listener) throws java.io.IOException
addListener
in interface Link
java.io.IOException
public Link removeListener(EventListener listener) throws java.io.IOException
removeListener
in interface Link
java.io.IOException
public Link addRplyListener(RplyListener listener) throws java.io.IOException
addRplyListener
in interface Link
java.io.IOException
public Link removeRplyListener(RplyListener listener) throws java.io.IOException
removeRplyListener
in interface Link
java.io.IOException
public boolean hasRplyListeners()
public Link addCustomListener(CustomListener listener) throws java.io.IOException
addCustomListener
in interface Link
java.io.IOException
public Link removeCustomListener(CustomListener listener) throws java.io.IOException
removeCustomListener
in interface Link
java.io.IOException
public void fireStateChanged(AnalogPinValueChangedEvent event)
public void fireStateChanged(DigitalPinValueChangedEvent event)
public void fireReplyReceived(RplyEvent event)
public void fireCustomReceived(CustomEvent event)
public void fireConnectionLost()
public void fireReconnected()
public Link addConnectionListener(ConnectionListener connectionListener)
public Link removeConnectionListener(ConnectionListener connectionListener)
public void deregisterAllEventListeners() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
Copyright © 2019. All rights reserved.