Deprecated methods

addBlurHandler(handler)

Deprecated. This function is deprecated and should not be used in new scripts.

Add a handler for blur events (losing keyboard focus).

Note that you can have multiple handlers for the same event on the same widget. They will be
called in the order that they were added to the widget, although ServerHandlers may appear to happen
simultaneously.

The handler passes back some information to the server about what happened. This information
can be accessed as follows:

Parameters

Return

addClickHandler(handler)

Deprecated. This function is deprecated and should not be used in new scripts.

Add a handler for click events.

Note that you can have multiple handlers for the same event on the same widget. They will be
called in the order that they were added to the widget, although ServerHandlers may appear to happen
simultaneously.

The handler passes back some information to the server about what happened. This information
can be accessed as follows:

Parameters

Return

addFocusHandler(handler)

Deprecated. This function is deprecated and should not be used in new scripts.

Add a handler for focus events (gaining keyboard focus).

Note that you can have multiple handlers for the same event on the same widget. They will be
called in the order that they were added to the widget, although ServerHandlers may appear to happen
simultaneously.

The handler passes back some information to the server about what happened. This information
can be accessed as follows:

Parameters

Return

addKeyDownHandler(handler)

Deprecated. This function is deprecated and should not be used in new scripts.

Add a handler for key down events.

Note that you can have multiple handlers for the same event on the same widget. They will be
called in the order that they were added to the widget, although ServerHandlers may appear to happen
simultaneously.

The handler passes back some information to the server about what happened. This information
can be accessed as follows:

Parameters

Return

addKeyPressHandler(handler)

Deprecated. This function is deprecated and should not be used in new scripts.

Add a handler for key press events.

Note that you can have multiple handlers for the same event on the same widget. They will be
called in the order that they were added to the widget, although ServerHandlers may appear to happen
simultaneously.

The handler passes back some information to the server about what happened. This information
can be accessed as follows:

Parameters

Return

addKeyUpHandler(handler)

Deprecated. This function is deprecated and should not be used in new scripts.

Add a handler for key up events.

Note that you can have multiple handlers for the same event on the same widget. They will be
called in the order that they were added to the widget, although ServerHandlers may appear to happen
simultaneously.

The handler passes back some information to the server about what happened. This information
can be accessed as follows:

Parameters

Return

addMouseDownHandler(handler)

Deprecated. This function is deprecated and should not be used in new scripts.

Add a handler for mouse down events.

Note that you can have multiple handlers for the same event on the same widget. They will be
called in the order that they were added to the widget, although ServerHandlers may appear to happen
simultaneously.

The handler passes back some information to the server about what happened. This information
can be accessed as follows:

Parameters

Return

addMouseMoveHandler(handler)

Deprecated. This function is deprecated and should not be used in new scripts.

Add a handler for mouse move events.

Note that you can have multiple handlers for the same event on the same widget. They will be
called in the order that they were added to the widget, although ServerHandlers may appear to happen
simultaneously.

The handler passes back some information to the server about what happened. This information
can be accessed as follows:

Parameters

Return

addMouseOutHandler(handler)

Deprecated. This function is deprecated and should not be used in new scripts.

Add a handler for mouse out events.

Note that you can have multiple handlers for the same event on the same widget. They will be
called in the order that they were added to the widget, although ServerHandlers may appear to happen
simultaneously.

The handler passes back some information to the server about what happened. This information
can be accessed as follows:

Parameters

Return

addMouseOverHandler(handler)

Deprecated. This function is deprecated and should not be used in new scripts.

Add a handler for mouse move events.

Note that you can have multiple handlers for the same event on the same widget. They will be
called in the order that they were added to the widget, although ServerHandlers may appear to happen
simultaneously.

The handler passes back some information to the server about what happened. This information
can be accessed as follows:

Parameters

Return

addMouseUpHandler(handler)

Deprecated. This function is deprecated and should not be used in new scripts.

Add a handler for mouse up events.

Note that you can have multiple handlers for the same event on the same widget. They will be
called in the order that they were added to the widget, although ServerHandlers may appear to happen
simultaneously.

The handler passes back some information to the server about what happened. This information
can be accessed as follows:

Parameters

Return

addMouseWheelHandler(handler)

Deprecated. This function is deprecated and should not be used in new scripts.

Add a handler for mouse wheel events.

Note that you can have multiple handlers for the same event on the same widget. They will be
called in the order that they were added to the widget, although ServerHandlers may appear to happen
simultaneously.

The handler passes back some information to the server about what happened. This information
can be accessed as follows:

Return

setStyleAttributes(attributes)

Deprecated. This function is deprecated and should not be used in new scripts.

Sets this ToggleButton's style attributes. This is a convenience method that is equivalent
to calling setStyleAttribute with every key/value pair in the attributes object. Valid
attributes are listed here; the values for each
attribute are the same as those available in CSS style sheets.