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

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

public class BeforeShowContextMenuEvent
extends GwtEvent<BeforeShowContextMenuEvent.BeforeShowContextMenuHandler>
implements CancellableEvent

Fires before a widget's context menu is shown.


Nested Class Summary
static interface BeforeShowContextMenuEvent.BeforeShowContextMenuHandler
          Handler for BeforeShowContextMenuEvent events.
static interface BeforeShowContextMenuEvent.HasBeforeShowContextMenuHandler
          A widget that implements this interface is a public source of BeforeShowContextMenuEvent events.
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
 
Constructor Summary
BeforeShowContextMenuEvent(Menu menu)
           
 
Method Summary
 GwtEvent.Type<BeforeShowContextMenuEvent.BeforeShowContextMenuHandler> getAssociatedType()
           
 Menu getMenu()
          Returns the context menu.
 Component getSource()
           
static GwtEvent.Type<BeforeShowContextMenuEvent.BeforeShowContextMenuHandler> 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

BeforeShowContextMenuEvent

public BeforeShowContextMenuEvent(Menu menu)
Method Detail

getType

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

Returns:
returns the handler type

getAssociatedType

public GwtEvent.Type<BeforeShowContextMenuEvent.BeforeShowContextMenuHandler> getAssociatedType()
Overrides:
getAssociatedType in class GwtEvent<BeforeShowContextMenuEvent.BeforeShowContextMenuHandler>

getMenu

public Menu getMenu()
Returns the context menu.

Returns:
the context menu

getSource

public Component getSource()
Overrides:
getSource in class GwtEvent<BeforeShowContextMenuEvent.BeforeShowContextMenuHandler>

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.