edu.wpi.first.wpilibj.networktables
Class NetworkTableConnectionListenerAdapter

java.lang.Object
  extended by edu.wpi.first.wpilibj.networktables.NetworkTableConnectionListenerAdapter
All Implemented Interfaces:
IRemoteConnectionListener

public class NetworkTableConnectionListenerAdapter
extends Object
implements IRemoteConnectionListener

An adapter that changes the source of a connection event

Author:
Mitchell

Constructor Summary
NetworkTableConnectionListenerAdapter(IRemote targetSource, IRemoteConnectionListener targetListener)
           
 
Method Summary
 void connected(IRemote remote)
          Called when an IRemote is connected
 void disconnected(IRemote remote)
          Called when an IRemote is disconnected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkTableConnectionListenerAdapter

public NetworkTableConnectionListenerAdapter(IRemote targetSource,
                                             IRemoteConnectionListener targetListener)
Parameters:
targetSource - the source where the event will appear to come from
targetListener - the listener where events will be forwarded
Method Detail

connected

public void connected(IRemote remote)
Description copied from interface: IRemoteConnectionListener
Called when an IRemote is connected

Specified by:
connected in interface IRemoteConnectionListener
Parameters:
remote - the object that connected

disconnected

public void disconnected(IRemote remote)
Description copied from interface: IRemoteConnectionListener
Called when an IRemote is disconnected

Specified by:
disconnected in interface IRemoteConnectionListener
Parameters:
remote - the object that disconnected


Copyright © 2013. All rights reserved.