public abstract class AbstractListenerLink extends java.lang.Object implements Link
| 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, waitsendCustomMessage, sendKeyPressEvent, sendNoTone, sendTone, startListening, stopListening, switchAnalogPin, switchDigitalPinpublic Link addListener(EventListener listener) throws java.io.IOException
addListener in interface Linkjava.io.IOExceptionpublic Link removeListener(EventListener listener) throws java.io.IOException
removeListener in interface Linkjava.io.IOExceptionpublic Link addRplyListener(RplyListener listener) throws java.io.IOException
addRplyListener in interface Linkjava.io.IOExceptionpublic Link removeRplyListener(RplyListener listener) throws java.io.IOException
removeRplyListener in interface Linkjava.io.IOExceptionpublic boolean hasRplyListeners()
public Link addCustomListener(CustomListener listener) throws java.io.IOException
addCustomListener in interface Linkjava.io.IOExceptionpublic Link removeCustomListener(CustomListener listener) throws java.io.IOException
removeCustomListener in interface Linkjava.io.IOExceptionpublic 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.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionCopyright © 2018. All rights reserved.