Class JDPServerListener
java.lang.Object
|
+----java.lang.Thread
|
+----JDPServerListener
- public class JDPServerListener
- extends Thread
Class JDPServerListener represents a class to listen for requests from the server.
-
JDPServerListener(JDPUser)
- Creates a Listener to listen for requests from the server.
-
deregisterRequest(Component)
- Deregister a component so it is no longer receives events from the server.
-
registerForRequest(String, Component)
- Register a component to listen for events of a particular type.
-
run()
-
JDPServerListener
public JDPServerListener(JDPUser user)
- Creates a Listener to listen for requests from the server.
- Parameters:
- JDPUser - the global user parameter used to pass handles in JDP.
run
public void run()
- Overrides:
- run in class Thread
registerForRequest
public synchronized void registerForRequest(String requestName,
Component listener)
- Register a component to listen for events of a particular type.
- Parameters:
- requestName - the type of event to listen for.
- listener - the component to be notified when the event occurs
deregisterRequest
public synchronized void deregisterRequest(Component listener)
- Deregister a component so it is no longer receives events from the server.
- Parameters:
- listener - the component to deregister.