Class ResizeEvent
Fired when the event source is resized.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
-
Constructor Summary
ModifierConstructorDescriptionprotected
ResizeEvent
(int width, int height) Construct a newResizeEvent
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
dispatch
(ResizeHandler handler) Should only be called byHandlerManager
.static <S extends HasResizeHandlers & HasHandlers>
voidfire
(S source, int width, int height) Fires a resize event on all registered handlers in the handler source.final GwtEvent.Type
<ResizeHandler> Returns theEvent.Type
used to register this event, allowing anEventBus
to find handlers of the appropriate class.int
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.This is a method used primarily for debugging.
-
Constructor Details
-
ResizeEvent
protected ResizeEvent(int width, int height) Construct a newResizeEvent
.- Parameters:
width
- the new widthheight
- the new height
-
-
Method Details
-
fire
public 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.- Type Parameters:
S
- The handler source- Parameters:
source
- the source of the handlerswidth
- the new widthheight
- the new height
-
getType
Ensures the existence of the handler hook and then returns it.- Returns:
- returns a handler hook
-
getAssociatedType
Description copied from class:Event
Returns theEvent.Type
used to register this event, allowing anEventBus
to find handlers of the appropriate class.- Specified by:
getAssociatedType
in classGwtEvent<ResizeHandler>
- Returns:
- the type
-
getHeight
public int getHeight()Returns the new height.- Returns:
- the new height
-
getWidth
public int getWidth()Returns the new width.- Returns:
- the new width
-
toDebugString
Description copied from class:Event
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.- Overrides:
toDebugString
in classEvent<ResizeHandler>
- Returns:
- a string representing the event's specifics.
-