# Class BrowserWindow.EvalRequest

java.lang.Object
java.util.Observable
com.codename1.util.AsyncResource<String>
com.codename1.ui.BrowserWindow.EvalRequest

Enclosing class:
  `BrowserWindow`

public static class BrowserWindow.EvalRequest extends AsyncResource<String>
A future that is returned from the eval() method.

- ## Nested Class Summary

  ### Nested classes/interfaces inherited from class AsyncResource

  `AsyncResource.AsyncExecutionException, AsyncResource.CancellationException`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `EvalRequest()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getJS()`
  Gets the JS code to be executed.
  `void`
  `setJS(String js)`
  Sets the JS code to be executed

  ### Methods inherited from class AsyncResource

  `addListener, all, all, asPromise, await, await, await, cancel, complete, error, except, except, get, get, get, isCancelled, isCancelled, isDone, isReady, onResult, ready, ready, waitFor`

  ### Methods inherited from class Observable

  `addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### EvalRequest

    public EvalRequest()

- ## Method Details

  - ### getJS

    public String getJS()
    Gets the JS code to be executed.

  - ### setJS

    public void setJS(String js)

    Sets the JS code to be executed

    ###### Parameters

    - `js`