public class RMIRemoteKey extends java.rmi.server.UnicastRemoteObject implements RMIKey
| Modifier | Constructor and Description |
|---|---|
protected |
RMIRemoteKey() |
| Modifier and Type | Method and Description |
|---|---|
void |
addKeyListener(KeyListener listener) |
int |
getId() |
boolean |
isDown() |
boolean |
isUp() |
void |
setId(java.lang.String name) |
void |
simulateEvent(int event) |
void |
waitForPress() |
void |
waitForPressAndRelease() |
clone, exportObject, exportObject, exportObject, unexportObjectprotected RMIRemoteKey()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic int getId()
throws java.rmi.RemoteException
public boolean isDown()
throws java.rmi.RemoteException
public boolean isUp()
throws java.rmi.RemoteException
public void waitForPress()
throws java.rmi.RemoteException
waitForPress in interface RMIKeyjava.rmi.RemoteExceptionpublic void waitForPressAndRelease()
throws java.rmi.RemoteException
waitForPressAndRelease in interface RMIKeyjava.rmi.RemoteExceptionpublic void addKeyListener(KeyListener listener) throws java.rmi.RemoteException
addKeyListener in interface RMIKeyjava.rmi.RemoteExceptionpublic void simulateEvent(int event)
throws java.rmi.RemoteException
simulateEvent in interface RMIKeyjava.rmi.RemoteExceptionpublic void setId(java.lang.String name)