Class GWTSimple

java.lang.Object
com.singularsys.client.GWTSimple
All Implemented Interfaces:
EntryPoint, ClickHandler, KeyUpHandler, EventHandler

public class GWTSimple extends Object implements EntryPoint, ClickHandler, KeyUpHandler
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 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 interface EntryPoint
    • onClick

      public void onClick(ClickEvent event)
      Fired when the user clicks on the calcButton, calls calcResult()
      Specified by:
      onClick in interface ClickHandler
    • onKeyUp

      public void onKeyUp(KeyUpEvent event)
      Fired when the user types in the nameField. calls calcResult() when enter is pressed.
      Specified by:
      onKeyUp in interface KeyUpHandler
    • calcResult

      public void calcResult()
      Parse and evaluate the expressions, reading and writing to widgets