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
|
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 |
landlord
private SimpleLandlord landlord
outputListeners
private java.util.LinkedList outputListeners
myLeaseListener
private SimpleLandlord.LeaseListener myLeaseListener
SimpleTextInputDevice
public SimpleTextInputDevice()
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