public class

ResizeEvent

extends GwtEvent<H extends EventHandler>
java.lang.Object
   ↳ com.google.gwt.event.shared.GwtEvent<H extends com.google.gwt.event.shared.EventHandler>
     ↳ com.google.gwt.event.logical.shared.ResizeEvent

Class Overview

Fired when the event source is resized.

Summary

Protected Constructors
ResizeEvent(int width, int height)
Construct a new ResizeEvent.
Public Methods
static <S extends HasResizeHandlers & HasHandlers> void fire(S source, int width, int height)
Fires a resize event on all registered handlers in the handler source.
final Type<ResizeHandler> getAssociatedType()
Returns the type used to register this event.
int getHeight()
Returns the new height.
static Type<ResizeHandler> getType()
Ensures the existence of the handler hook and then returns it.
int getWidth()
Returns the new width.
String toDebugString()
This is a method used primarily for debugging.
Protected Methods
void dispatch(ResizeHandler handler)
Should only be called by HandlerManager.
[Expand]
Inherited Methods
From class com.google.gwt.event.shared.GwtEvent
From class java.lang.Object

Protected Constructors

protected ResizeEvent (int width, int height)

Construct a new ResizeEvent.

Parameters
width the new width
height the new height

Public Methods

public static void fire (S source, int width, int height)

Fires a resize event on all registered handlers in the handler source.

Parameters
source the source of the handlers
width the new width
height the new height

public final Type<ResizeHandler> getAssociatedType ()

Returns the type used to register this event. Used by handler manager to dispatch events to the correct handlers.

Returns
  • the type

public int getHeight ()

Returns the new height.

Returns
  • the new height

public static Type<ResizeHandler> getType ()

Ensures the existence of the handler hook and then returns it.

Returns
  • returns a handler hook

public int getWidth ()

Returns the new width.

Returns
  • the new width

public String toDebugString ()

This is a method used primarily for debugging. It gives a string representation of the event details. This does not override the toString method because the compiler cannot always optimize toString out correctly. Event types should override as desired.

Returns
  • a string representing the event's specifics.

Protected Methods

protected void dispatch (ResizeHandler handler)

Should only be called by HandlerManager. In other words, do not use or call.

Parameters
handler handler