Package com.singularsys.client
Class GWTSimple
java.lang.Object
com.singularsys.client.GWTSimple
- All Implemented Interfaces:
EntryPoint,ClickHandler,KeyUpHandler,EventHandler
A Simple GWT application.
Creates two text fields: an input expression, and the output result, and a button that makes Jep parse and evaluate the expression.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidParse and evaluate the expressions, reading and writing to widgetsvoidonClick(ClickEvent event) Fired when the user clicks on the calcButton, calls calcResult()voidonKeyUp(KeyUpEvent event) Fired when the user types in the nameField.voidThis is the entry point method, called by the GWT system when the webpage is loaded.
-
Constructor Details
-
GWTSimple
public GWTSimple()
-
-
Method Details
-
onModuleLoad
public void onModuleLoad()This is the entry point method, called by the GWT system when the webpage is loaded.- Specified by:
onModuleLoadin interfaceEntryPoint
-
onClick
Fired when the user clicks on the calcButton, calls calcResult()- Specified by:
onClickin interfaceClickHandler
-
onKeyUp
Fired when the user types in the nameField. calls calcResult() when enter is pressed.- Specified by:
onKeyUpin interfaceKeyUpHandler
-
calcResult
public void calcResult()Parse and evaluate the expressions, reading and writing to widgets
-