com.sencha.gxt.widget.core.client.event
Class BeforeRemoveEvent

java.lang.Object
  extended by com.google.web.bindery.event.shared.Event<H>
      extended by com.google.gwt.event.shared.GwtEvent<BeforeRemoveEvent.BeforeRemoveHandler>
          extended by com.sencha.gxt.widget.core.client.event.BeforeRemoveEvent
All Implemented Interfaces:
CancellableEvent

public class BeforeRemoveEvent
extends GwtEvent<BeforeRemoveEvent.BeforeRemoveHandler>
implements CancellableEvent

Fires before a widget is removed from a container.


Nested Class Summary
static interface BeforeRemoveEvent.BeforeRemoveHandler
          Handler for BeforeRemoveEvent events.
static interface BeforeRemoveEvent.HasBeforeRemoveHandlers
          A widget that implements this interface is a public source of BeforeRemoveEvent events.
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
 
Constructor Summary
BeforeRemoveEvent(Widget widget)
           
 
Method Summary
 GwtEvent.Type<BeforeRemoveEvent.BeforeRemoveHandler> getAssociatedType()
           
 Container getSource()
           
static GwtEvent.Type<BeforeRemoveEvent.BeforeRemoveHandler> getType()
          Gets the type associated with this event.
 Widget getWidget()
          Returns the widget to be removed.
 boolean isCancelled()
          Returns true if the event is cancelled.
 void setCancelled(boolean cancelled)
          True to cancel the event.
 
Methods inherited from class com.google.web.bindery.event.shared.Event
toDebugString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeforeRemoveEvent

public BeforeRemoveEvent(Widget widget)
Method Detail

getType

public static GwtEvent.Type<BeforeRemoveEvent.BeforeRemoveHandler> getType()
Gets the type associated with this event.

Returns:
returns the handler type

getAssociatedType

public GwtEvent.Type<BeforeRemoveEvent.BeforeRemoveHandler> getAssociatedType()
Overrides:
getAssociatedType in class GwtEvent<BeforeRemoveEvent.BeforeRemoveHandler>

getSource

public Container getSource()
Overrides:
getSource in class GwtEvent<BeforeRemoveEvent.BeforeRemoveHandler>

getWidget

public Widget getWidget()
Returns the widget to be removed.

Returns:
the widget

isCancelled

public boolean isCancelled()
Description copied from interface: CancellableEvent
Returns true if the event is cancelled.

Specified by:
isCancelled in interface CancellableEvent
Returns:
true for cancelled

setCancelled

public void setCancelled(boolean cancelled)
Description copied from interface: CancellableEvent
True to cancel the event.

Specified by:
setCancelled in interface CancellableEvent
Parameters:
cancelled - true to cancel


Copyright © 2012. All Rights Reserved.