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, unexportObject
protected RMIRemoteKey() throws java.rmi.RemoteException
java.rmi.RemoteException
public 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 RMIKey
java.rmi.RemoteException
public void waitForPressAndRelease() throws java.rmi.RemoteException
waitForPressAndRelease
in interface RMIKey
java.rmi.RemoteException
public void addKeyListener(KeyListener listener) throws java.rmi.RemoteException
addKeyListener
in interface RMIKey
java.rmi.RemoteException
public void simulateEvent(int event) throws java.rmi.RemoteException
simulateEvent
in interface RMIKey
java.rmi.RemoteException
public void setId(java.lang.String name)