jaugment2.UI.textUI
Class SimpleTextInputDevice

java.lang.Object
  |
  +--jaugment2.UI.textUI.SimpleTextInputDevice
Direct Known Subclasses:
SerialTextInputDevice, StdinTextInputDevice

public class SimpleTextInputDevice
extends java.lang.Object
implements TextInputDevice

This class helps to write a TextInputDevice by


Inner Class Summary
private static class SimpleTextInputDevice.outputListenerEntry
          class for entries in outputListeners.
 
Inner classes inherited from class jaugment2.UI.textUI.TextInputDevice
TextInputDevice.TextInputRemoteEvent
 
Field Summary
private  SimpleLandlord landlord
           
private  SimpleLandlord.LeaseListener myLeaseListener
           
private  java.util.LinkedList outputListeners
           
 
Constructor Summary
SimpleTextInputDevice()
           
 
Method Summary
 net.jini.core.lease.Lease addTextInputListener(net.jini.core.event.RemoteEventListener listener, java.rmi.MarshalledObject handback, long requestedDuration)
          Add another listener for our data.
 void outputMe(java.lang.StringBuffer out)
          send the given bytes to all listeners
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

landlord

private SimpleLandlord landlord

outputListeners

private java.util.LinkedList outputListeners

myLeaseListener

private SimpleLandlord.LeaseListener myLeaseListener
Constructor Detail

SimpleTextInputDevice

public SimpleTextInputDevice()
Method Detail

outputMe

public void outputMe(java.lang.StringBuffer out)
send the given bytes to all listeners

addTextInputListener

public net.jini.core.lease.Lease addTextInputListener(net.jini.core.event.RemoteEventListener listener,
                                                      java.rmi.MarshalledObject handback,
                                                      long requestedDuration)
                                               throws java.rmi.RemoteException,
                                                      net.jini.core.lease.LeaseDeniedException,
                                                      java.util.TooManyListenersException
Add another listener for our data. this implementation does not throw a TooManyListenersException.
Specified by:
addTextInputListener in interface TextInputDevice