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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Parse and evaluate the expressions, reading and writing to widgetsvoid
onClick
(ClickEvent event) Fired when the user clicks on the calcButton, calls calcResult()void
onKeyUp
(KeyUpEvent event) Fired when the user types in the nameField.void
This 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:
onModuleLoad
in interfaceEntryPoint
-
onClick
Fired when the user clicks on the calcButton, calls calcResult()- Specified by:
onClick
in interfaceClickHandler
-
onKeyUp
Fired when the user types in the nameField. calls calcResult() when enter is pressed.- Specified by:
onKeyUp
in interfaceKeyUpHandler
-
calcResult
public void calcResult()Parse and evaluate the expressions, reading and writing to widgets
-