| Modifier and Type | Field and Description |
|---|---|
static RegExp |
DEV_MODE_LOCATION_PATTERN
The pattern of a dev mode URL.
|
| Constructor and Description |
|---|
GWTX() |
| Modifier and Type | Method and Description |
|---|---|
Browser |
browser()
The browser under which the application is running.
|
EventBus |
bus()
The general event bus.
|
static void |
handleUncaughtException(Throwable t)
Shows the exception in an alert box along with instructions for developers to get
more information.
|
static GWTX |
i()
The single instance of GWTX.
|
static StringBuilder |
stringBuilderClear()
A common string builder cleared for atomic reuse.
|
static int |
wrapMaxInteger(int value,
int min)
Returns the same value if it is less than Integer.MAX_VALUE, otherwise returns
min. |
public static final RegExp DEV_MODE_LOCATION_PATTERN
gwt.codesvr parameter value and (3) the
trailing portion which might be null (or empty depending on the browser). If the
trailing portion is non-null/non-empty, then it may be appended directly to the
leading portion to produce a URL without the gwt.codesvr parameter;
otherwise the leading portion alone will suffice for this purpose provided the
trailing '?' or '&' character is chopped. An example of a dev mode URL is:
http://localhost/path?p1=x&q1=x&gwt.codesvr=localhost:9997&p3=x&q3=x
The resulting values for the groups are (1) "http://localhost/path?p1=x&q1=x&",
(2) "localhost:9997" and (3) "p3=x&q3=x".GWT.isProdMode()public GWTX()
public Browser browser()
public static void handleUncaughtException(Throwable t)
public static StringBuilder stringBuilderClear()
public static int wrapMaxInteger(int value, int min)
min. This convenience method
serves mainly to document that integral wrapping is not emulated by GWT.