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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPrints the prompt string.voidThis is the entry point method.voidDelegates toGWTConsoleAdapter.print(Object)voidDelegates 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, mainMethods 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 aGWTConsoleAdapterand calls theCPConsole.initialise().- Specified by:
onModuleLoadin interfaceEntryPoint
-
testSpecialCommands
First tries theGWTConsoleAdapter.testSpecialCommands(String)method and if no action call the superclass methodConsole.testSpecialCommands(String).- Overrides:
testSpecialCommandsin 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:ConsolePrints the prompt string. -
print
Delegates toGWTConsoleAdapter.print(Object) -
println
Delegates toGWTConsoleAdapter.println(Object)
-