public class ResizeEvent extends GwtEvent<ResizeHandler>
GwtEvent.Type<H>
Modifier | Constructor and Description |
---|---|
protected |
ResizeEvent(int width,
int height)
Construct a new
ResizeEvent . |
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(ResizeHandler handler)
Should only be called by
HandlerManager . |
static <S extends HasResizeHandlers & HasHandlers> |
fire(S source,
int width,
int height)
Fires a resize event on all registered handlers in the handler source.
|
GwtEvent.Type<ResizeHandler> |
getAssociatedType()
Returns the
Event.Type used to register this event, allowing an
EventBus to find handlers of the appropriate class. |
int |
getHeight()
Returns the new height.
|
static GwtEvent.Type<ResizeHandler> |
getType()
Ensures the existence of the handler hook and then returns it.
|
int |
getWidth()
Returns the new width.
|
java.lang.String |
toDebugString()
This is a method used primarily for debugging.
|
protected ResizeEvent(int width, int height)
ResizeEvent
.width
- the new widthheight
- the new heightpublic static <S extends HasResizeHandlers & HasHandlers> void fire(S source, int width, int height)
S
- The handler sourcesource
- the source of the handlerswidth
- the new widthheight
- the new heightpublic static GwtEvent.Type<ResizeHandler> getType()
public final GwtEvent.Type<ResizeHandler> getAssociatedType()
Event
Event.Type
used to register this event, allowing an
EventBus
to find handlers of the appropriate class.getAssociatedType
in class GwtEvent<ResizeHandler>
public int getHeight()
public int getWidth()
public java.lang.String toDebugString()
Event
toDebugString
in class Event<ResizeHandler>
protected void dispatch(ResizeHandler handler)
GwtEvent
HandlerManager
. In other words, do not use
or call.dispatch
in class GwtEvent<ResizeHandler>
handler
- handlerEventBus.dispatchEvent(Event, Object)