com.sencha.gxt.widget.core.client.event
Class BeforeExpandItemEvent<T>

java.lang.Object
  extended by com.google.web.bindery.event.shared.Event<H>
      extended by com.google.gwt.event.shared.GwtEvent<BeforeExpandItemEvent.BeforeExpandItemHandler<T>>
          extended by com.sencha.gxt.widget.core.client.event.BeforeExpandItemEvent<T>
Type Parameters:
T - the type about to be expanded
All Implemented Interfaces:
CancellableEvent

public class BeforeExpandItemEvent<T>
extends GwtEvent<BeforeExpandItemEvent.BeforeExpandItemHandler<T>>
implements CancellableEvent

Event type for widgets that can be expanded.


Nested Class Summary
static interface BeforeExpandItemEvent.BeforeExpandItemHandler<T>
          Handler class for BeforeCollapseEvent events.
static interface BeforeExpandItemEvent.HasBeforeExpandItemHandlers<T>
          A widget that implements this interface is a public source of BeforeExpandItemEvent events.
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
 
Constructor Summary
BeforeExpandItemEvent(T item)
           
 
Method Summary
 GwtEvent.Type<BeforeExpandItemEvent.BeforeExpandItemHandler<T>> getAssociatedType()
           
 T getItem()
           
 Component getSource()
           
static GwtEvent.Type<BeforeExpandItemEvent.BeforeExpandItemHandler<?>> getType()
          Gets the type associated with this event.
 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

BeforeExpandItemEvent

public BeforeExpandItemEvent(T item)
Method Detail

getType

public static GwtEvent.Type<BeforeExpandItemEvent.BeforeExpandItemHandler<?>> getType()
Gets the type associated with this event.

Returns:
returns the handler type

getItem

public T getItem()

getAssociatedType

public GwtEvent.Type<BeforeExpandItemEvent.BeforeExpandItemHandler<T>> getAssociatedType()
Overrides:
getAssociatedType in class GwtEvent<BeforeExpandItemEvent.BeforeExpandItemHandler<T>>

getSource

public Component getSource()
Overrides:
getSource in class GwtEvent<BeforeExpandItemEvent.BeforeExpandItemHandler<T>>

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.