|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.web.bindery.event.shared.Event<H> com.google.gwt.event.shared.GwtEvent<ResizeHandler> com.google.gwt.event.logical.shared.ResizeEvent
public 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 | |
---|---|
protected |
ResizeEvent(int width,
int height)
Construct a new ResizeEvent . |
Method Summary | ||
---|---|---|
protected void |
dispatch(ResizeHandler handler)
Should only be called by HandlerManager . |
|
static
|
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. |
Methods inherited from class com.google.gwt.event.shared.GwtEvent |
---|
assertLive, getSource, isLive, kill, revive |
Methods inherited from class com.google.web.bindery.event.shared.Event |
---|
setSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected ResizeEvent(int width, int height)
ResizeEvent
.
width
- the new widthheight
- the new heightMethod Detail |
---|
public 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)
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |