Package com.singularsys.client
Class GWTConsole
java.lang.Object
com.singularsys.jepexamples.consoles.Console
com.singularsys.jepexamples.consoles.CPConsole
com.singularsys.client.GWTConsole
- All Implemented Interfaces:
EntryPoint
GWT enabled Console application.
Extends the standard CPConsole
and uses the GWTConsoleAdapter
for I/O operations.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.singularsys.jepexamples.consoles.Console
Console.JepPrintStream, Console.SPEC_ACTION
-
Field Summary
Fields inherited from class com.singularsys.jepexamples.consoles.Console
doubleFormat, history, jep, showHistory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionPrints the prompt string.void
This is the entry point method.void
Delegates toGWTConsoleAdapter.print(Object)
void
Delegates toGWTConsoleAdapter.println(Object)
testSpecialCommands
(String command) First tries theGWTConsoleAdapter.testSpecialCommands(String)
method and if no action call the superclass methodConsole.testSpecialCommands(String)
.Methods inherited from class com.singularsys.jepexamples.consoles.CPConsole
initialise, main
Methods inherited from class com.singularsys.jepexamples.consoles.Console
getCommand, handleError, inputLoop, printFuns, printHelp, printIntroText, printOps, printStdHelp, printVars, processCommand, processEquation, run, setAlteredCommand, setFormat, split, toString
-
Constructor Details
-
GWTConsole
public GWTConsole()
-
-
Method Details
-
onModuleLoad
public void onModuleLoad()This is the entry point method. Create aGWTConsoleAdapter
and calls theCPConsole.initialise()
.- Specified by:
onModuleLoad
in interfaceEntryPoint
-
testSpecialCommands
First tries theGWTConsoleAdapter.testSpecialCommands(String)
method and if no action call the superclass methodConsole.testSpecialCommands(String)
.- Overrides:
testSpecialCommands
in classConsole
- Returns:
- SPEC_ACTION.CONTINUE - continue processing this equation, SPEC_ACTION.BREAK - stop processing this equation and get the next line of input, SPEC_ACTION.ALTERED - the input text has been altered, SPEC_ACTION.EXIT stop the program
- See Also:
-
getPrompt
Description copied from class:Console
Prints the prompt string. -
print
Delegates toGWTConsoleAdapter.print(Object)
-
println
Delegates toGWTConsoleAdapter.println(Object)
-