jview
Class JSwitcherStub
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
util.rmi.RmiPropertyContainer
util.rmi.AbstractRmiListener
jview.ApplicationJoiner
jview.JSwitcherStub
- All Implemented Interfaces:
- Cloneable, Remote, EventListener, SubComponentListener, ExitCleaning, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying, RmiEventListener, RmiListener, RmiPropertyBearing
public class JSwitcherStub
- extends ApplicationJoiner
This client works together with a JRemoteSwitcher server. It also
supports application joining because it extends an
ApplicationJoiner.
After init, the retrieved mapping of names to icons is used to display
a vertical box of buttons. When a button is pressed, we switch to that
remote instance.
|
Method Summary |
void |
init()
After init, we construct a box of switches, that remotely cahnge the
displayed component if pressed. |
static void |
main(String[] arg)
We construct this switcher stub by first trying to look up the
argument as a host name and use the local host as the subcomponent
caster host. |
| Methods inherited from class util.rmi.AbstractRmiListener |
allBound, blockBinding, blockBinding, disconnect, exit, getIP, getListenerName, isConnected, listenerName, releaseBinding, releaseBinding, rescanned, startBinding, startBinding |
| Methods inherited from class util.PropertyResources |
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, setObject, setProperties, setProperty, stringProperties, toString |
| Methods inherited from interface util.PropertySupplying |
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
KEY_COLUMNS
public static final String KEY_COLUMNS
- The number of columns.
- See Also:
- Constant Field Values
DEFCOLUMNS
private static final int DEFCOLUMNS
- Per default we have only one column.
- See Also:
- Constant Field Values
buttons
private JPanel buttons
- The buttons for switching applications.
JSwitcherStub
public JSwitcherStub(Map<String,String> prop)
throws RemoteException
- Constructs a new switcher stub.
- Throws:
RemoteException
init
public void init()
- After init, we construct a box of switches, that remotely cahnge the
displayed component if pressed.
- Specified by:
init in interface Initializable- Overrides:
init in class ApplicationJoiner
main
public static void main(String[] arg)
throws RemoteException
- We construct this switcher stub by first trying to look up the
argument as a host name and use the local host as the subcomponent
caster host.
If this is not possible, we try to locate
the properties file.
- Throws:
RemoteException