jview
Interface RemoteSwitching

All Superinterfaces:
Remote
All Known Implementing Classes:
JRemoteSwitcher

public interface RemoteSwitching
extends Remote

Interface to signal the capability to switch the visibla application via RMi.


Method Summary
 Class<?> getSubResponse(String name)
          If the name of the component is linked to a SubComponent, this method should return the class of keys the SubComponent supports.
 Map<String,Icon> knownSwitches()
          Retrieves a list of all component's names we can switch to.
 boolean switchTo(String id, Object key)
          Switches to component with the specified id.
 

Method Detail

knownSwitches

Map<String,Icon> knownSwitches()
                               throws RemoteException
Retrieves a list of all component's names we can switch to. Components that have an associated icon shoul have a valid mapping, otherwise map to null.

Throws:
RemoteException

getSubResponse

Class<?> getSubResponse(String name)
                        throws RemoteException
If the name of the component is linked to a SubComponent, this method should return the class of keys the SubComponent supports. If the name does not point to aSubComponent, return null

Throws:
RemoteException

switchTo

boolean switchTo(String id,
                 Object key)
                 throws RemoteException
Switches to component with the specified id. If a key is non-null and the component switched to is an instance of SubComponent, pass that key, also.

Throws:
RemoteException