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

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

public class BeforeQueryEvent<T>
extends GwtEvent<BeforeQueryEvent.BeforeQueryHandler<T>>
implements CancellableEvent

Fires before a query is executed.


Nested Class Summary
static interface BeforeQueryEvent.BeforeQueryHandler<T>
          Handler class for BeforeQueryEvent events.
static interface BeforeQueryEvent.HasBeforeQueryHandlers<T>
          A widget that implements this interface is a public source of BeforeQueryEvent events.
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
 
Constructor Summary
BeforeQueryEvent(java.lang.String query)
           
 
Method Summary
 GwtEvent.Type<BeforeQueryEvent.BeforeQueryHandler<T>> getAssociatedType()
           
 java.lang.String getQuery()
           
 ComboBox<T> getSource()
           
static GwtEvent.Type<BeforeQueryEvent.BeforeQueryHandler<?>> 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.
 void setQuery(java.lang.String query)
           
 
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

BeforeQueryEvent

public BeforeQueryEvent(java.lang.String query)
Method Detail

getType

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

Returns:
returns the handler type

getAssociatedType

public GwtEvent.Type<BeforeQueryEvent.BeforeQueryHandler<T>> getAssociatedType()
Overrides:
getAssociatedType in class GwtEvent<BeforeQueryEvent.BeforeQueryHandler<T>>

getQuery

public java.lang.String getQuery()

getSource

public ComboBox<T> getSource()
Overrides:
getSource in class GwtEvent<BeforeQueryEvent.BeforeQueryHandler<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

setQuery

public void setQuery(java.lang.String query)


Copyright © 2012. All Rights Reserved.