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

java.lang.Object
  extended by com.google.web.bindery.event.shared.Event<H>
      extended by com.google.gwt.event.shared.GwtEvent<AddEvent.AddHandler>
          extended by com.sencha.gxt.widget.core.client.event.AddEvent

public class AddEvent
extends GwtEvent<AddEvent.AddHandler>

Fires after a widget is added to a container.


Nested Class Summary
static interface AddEvent.AddHandler
          Handler for AddEvent events.
static interface AddEvent.HasAddHandlers
          A widget that implements this interface is a public source of AddEvent events.
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
 
Constructor Summary
AddEvent(Widget widget, int index)
           
 
Method Summary
 GwtEvent.Type<AddEvent.AddHandler> getAssociatedType()
           
 int getIndex()
          Returns the insert index of the widget that was added.
 Container getSource()
           
static GwtEvent.Type<AddEvent.AddHandler> getType()
          Gets the type associated with this event.
 Widget getWidget()
          Returns the widget that was added.
 
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

AddEvent

public AddEvent(Widget widget,
                int index)
Method Detail

getType

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

Returns:
returns the handler type

getAssociatedType

public GwtEvent.Type<AddEvent.AddHandler> getAssociatedType()
Overrides:
getAssociatedType in class GwtEvent<AddEvent.AddHandler>

getIndex

public int getIndex()
Returns the insert index of the widget that was added.

Returns:
the insert index

getSource

public Container getSource()
Overrides:
getSource in class GwtEvent<AddEvent.AddHandler>

getWidget

public Widget getWidget()
Returns the widget that was added.

Returns:
the widget


Copyright © 2012. All Rights Reserved.