|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jaugment2.UI.textUI.TextUI
A text-only-UI and reference-implementation of a JAugment-UI
| Inner Class Summary | |
protected static class |
TextUI.AppEntry
this is the class for entries in the runningApps-list |
protected static class |
TextUI.InputEntry
this is the class for entries in the in-list |
static class |
TextUI.ProcessAdaptor
A simple adaptor to allow us to represent normal shell/console-apps. |
| Field Summary | |
protected TextUIRepresentable |
foregroundApp
The application, that is currently in the foreground ans receives our input. |
private java.util.LinkedList |
in
LinkedList of TextInputDevice representing out input-devices |
private boolean |
invokedStandalone
|
private UIManagerEventListener |
listener
react to events from out UIManagerBean |
private net.jini.lease.LeaseRenewalManager |
lrm
|
private java.util.LinkedList |
out
LinkedList of TextOutputDevice representing out input-devices |
private net.jini.core.event.RemoteEventListener |
reventListener
listens for Events from our apps |
protected java.util.LinkedList |
runningApps
all apps currently running |
private java.lang.StringBuffer |
sentence
small buffer used, so we always speak whole sentences |
protected speechSynthesizing |
synthservice
|
private UIManagerBean |
uiManagerBean
|
| Constructor Summary | |
TextUI()
|
|
| Method Summary | |
protected void |
handleInput(java.lang.String in)
Here we gather all text-input from the user to process it |
protected void |
handleOutput(java.lang.String in)
Here we gather all text-output from foreground-process and stderr-output from others to process it |
static void |
main(java.lang.String[] args)
|
protected void |
newApp(TextUIRepresentable rep,
boolean dontswitchfocus,
java.lang.String name)
internal function to add a newfound application-instance into the list and (if !dontswitchfocus or there is no application with the input-focus) give it the input-focus |
protected void |
newInput(TextInputDevice inp)
a new TextInputDevice has been found, handle it |
protected void |
newOutput(TextOutputDevice outp)
a new TextOutputDevice has been found, handle it |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected speechSynthesizing synthservice
private net.jini.lease.LeaseRenewalManager lrm
private java.util.LinkedList in
private java.util.LinkedList out
protected java.util.LinkedList runningApps
protected TextUIRepresentable foregroundApp
private net.jini.core.event.RemoteEventListener reventListener
private UIManagerBean uiManagerBean
private UIManagerEventListener listener
private boolean invokedStandalone
private java.lang.StringBuffer sentence
| Constructor Detail |
public TextUI()
| Method Detail |
protected void newInput(TextInputDevice inp)
protected void newOutput(TextOutputDevice outp)
protected void newApp(TextUIRepresentable rep,
boolean dontswitchfocus,
java.lang.String name)
public static void main(java.lang.String[] args)
protected void handleOutput(java.lang.String in)
protected void handleInput(java.lang.String in)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||