|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jaugment2.UI.UIManager.UIManagerBean
A Helper-class doing all the dirty work for a UI, so that new UIs can be written easily. It looks (among other things) for services that are representable by out UI. If a service is not yet representable for us you may write a representation for it and atach the representation looking for the services you can represent, use getAdmin (it has toi be Administratable) and atach yourself with net.jini.admin.JoinAdmin::addLookupAttributes(Entry[] attrSets) (if that interface is supported by the admin-object of the service) You meight find it usefull to atach thr actual UI as an EntryBean to the Entry instead of serializing it somehow without breaking all the references in it or creating it when it if used either by some magic (wrap all functions) or by requiring some special init()-function.
| Inner Class Summary | |
private class |
UIManagerBean.CommentParser
Parse # "statements" |
static class |
UIManagerBean.executeMacro
data-type containing everything about an execute-macro that a UI needs to know |
private class |
UIManagerBean.IncludeParser
Parse include-statements |
private class |
UIManagerBean.InstanciateThread
Thread to start services asyncronously |
private class |
UIManagerBean.StartupBeanParser
Parse "startup:bean"-statements |
| Field Summary | |
private UIManagerBean.executeMacro[] |
executeMacros
|
private java.lang.Object |
executeMacrosValidFor
|
(package private) LookupEventListener |
listener
React to services found/gone/changed from our JINI-registrars and the parseconfig-function |
private java.util.Hashtable |
localApps
|
private LocalLoockup |
lookup
|
private java.util.Hashtable |
runningApps
|
private java.util.Vector |
UIManagerEventListeners
|
private WatchTowerBean |
watchTower
|
| Constructor Summary | |
UIManagerBean(net.jini.core.lookup.ServiceTemplate at,
UIManagerEventListener l)
|
|
| Method Summary | |
boolean |
addService(java.lang.Object inst)
|
void |
addUIManagerEventListener(UIManagerEventListener l)
|
boolean |
execute(java.lang.String name)
Given a classname or macro-name start the service localy |
protected void |
fireApplicationFound(LookupEventEvent e,
java.lang.Object local)
|
protected void |
fireApplicationFound(UIManagerEventEvent e,
LookupEventEvent e2,
java.lang.Object local)
An application has been found/loaded by the config-parser and successfully instanciated |
protected void |
fireApplicationFound(UIManagerEventEvent e,
java.lang.Object local)
|
protected void |
fireApplicationVanished(UIManagerEventEvent e)
A JINI-Application we used over a network has vanished |
protected void |
fireLocalProcessStarted(UIManagerEventEvent e)
We started a local process due to a cmdln-startup-entry in the config-file |
UIManagerBean.executeMacro[] |
getExecuteMacros()
Returns a list of all defines exec-macros |
private net.jini.core.lookup.ServiceID |
newServiceID()
|
private void |
parseConfig()
parses the jaugment2.conf -file and starts-up any processes/services mentioned in there. |
void |
removeUIManagerEventListener(UIManagerEventListener l)
|
private void |
ServiceFoundEvent2(LookupEventEvent e,
java.lang.Object local)
|
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private WatchTowerBean watchTower
private LocalLoockup lookup
private java.util.Hashtable runningApps
private java.util.Hashtable localApps
private UIManagerBean.executeMacro[] executeMacros
private java.lang.Object executeMacrosValidFor
LookupEventListener listener
private transient java.util.Vector UIManagerEventListeners
| Constructor Detail |
public UIManagerBean(net.jini.core.lookup.ServiceTemplate at,
UIManagerEventListener l)
throws java.lang.Exception
| Method Detail |
public void removeUIManagerEventListener(UIManagerEventListener l)
public void addUIManagerEventListener(UIManagerEventListener l)
private net.jini.core.lookup.ServiceID newServiceID()
public UIManagerBean.executeMacro[] getExecuteMacros()
public boolean execute(java.lang.String name)
public boolean addService(java.lang.Object inst)
private void parseConfig()
private void ServiceFoundEvent2(LookupEventEvent e,
java.lang.Object local)
protected void fireLocalProcessStarted(UIManagerEventEvent e)
protected void fireApplicationFound(UIManagerEventEvent e,
java.lang.Object local)
throws java.beans.PropertyVetoException
protected void fireApplicationFound(LookupEventEvent e,
java.lang.Object local)
throws java.beans.PropertyVetoException
protected void fireApplicationFound(UIManagerEventEvent e,
LookupEventEvent e2,
java.lang.Object local)
throws java.beans.PropertyVetoException
protected void fireApplicationVanished(UIManagerEventEvent e)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||