public final class RevealContentEvent extends GwtEvent<RevealContentHandler<?>>
Presenter
that desires to reveal itself
within its parent. It is typically fired in the Presenter.revealInParent()
method. To reveal a presenter at the root of the application, fire either
RevealRootContentEvent
, RevealRootLayoutContentEvent
or
RevealRootPopupContentEvent
instead.
This event is handled by Proxy
classes. Upon handling this
event, the proxy first sets the content appropriately in the
presenter, and then reveals the presenter.GwtEvent.Type<H>
Constructor and Description |
---|
RevealContentEvent(GwtEvent.Type<RevealContentHandler<?>> type,
Presenter<?,?> content) |
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(RevealContentHandler<?> handler) |
static void |
fire(HasHandlers source,
GwtEvent.Type<RevealContentHandler<?>> type,
Presenter<?,?> content)
Fires a
RevealContentEvent with a specific GwtEvent.Type
into a source that has access to an EventBus . |
GwtEvent.Type<RevealContentHandler<?>> |
getAssociatedType() |
Presenter<?,?> |
getContent() |
assertLive, getSource, isLive, kill, revive
setSource, toDebugString, toString
public RevealContentEvent(GwtEvent.Type<RevealContentHandler<?>> type, Presenter<?,?> content)
public static void fire(HasHandlers source, GwtEvent.Type<RevealContentHandler<?>> type, Presenter<?,?> content)
RevealContentEvent
with a specific GwtEvent.Type
into a source that has access to an EventBus
.source
- The source that fires this event (HasHandlers
).type
- The specific event GwtEvent.Type
,
usually defined in the parent presenter
and annotated with ContentSlot
.content
- The Presenter
that wants to set itself as content in his parent.public GwtEvent.Type<RevealContentHandler<?>> getAssociatedType()
getAssociatedType
in class GwtEvent<RevealContentHandler<?>>
public Presenter<?,?> getContent()
protected void dispatch(RevealContentHandler<?> handler)
dispatch
in class GwtEvent<RevealContentHandler<?>>
Copyright © 2010–2014 Arcbees. All rights reserved.