org.overlord.sramp.ui.client.events
Class OkCancelEvent

java.lang.Object
  extended by com.google.web.bindery.event.shared.Event<H>
      extended by com.google.gwt.event.shared.GwtEvent<OkCancelEvent.Handler>
          extended by org.overlord.sramp.ui.client.events.OkCancelEvent

public class OkCancelEvent
extends com.google.gwt.event.shared.GwtEvent<OkCancelEvent.Handler>

Event fired by an widget that has an ok/cancel option (e.g. a dialog box).

Author:
eric.wittmann@redhat.com

Nested Class Summary
static interface OkCancelEvent.Handler
          Handler for OkCancelEvent.
static interface OkCancelEvent.HasOkCancelHandlers
          Indicates if a widget supports ok/cancel.
static class OkCancelEvent.OkCancelKind
           
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
com.google.gwt.event.shared.GwtEvent.Type<H>
 
Constructor Summary
OkCancelEvent(OkCancelEvent.OkCancelKind kind)
          Constructor.
 
Method Summary
protected  void dispatch(OkCancelEvent.Handler handler)
           
static OkCancelEvent fire(com.google.gwt.event.shared.HasHandlers source, OkCancelEvent.OkCancelKind kind)
          Fires the event.
 com.google.gwt.event.shared.GwtEvent.Type<OkCancelEvent.Handler> getAssociatedType()
           
static com.google.gwt.event.shared.GwtEvent.Type<OkCancelEvent.Handler> getType()
          Gets the type associated with this event.
 boolean isCancel()
          Returns true if this is a 'cancel' event.
 boolean isOk()
          Returns true if this is an 'ok' event.
 
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive
 
Methods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OkCancelEvent

public OkCancelEvent(OkCancelEvent.OkCancelKind kind)
Constructor.

Method Detail

fire

public static OkCancelEvent fire(com.google.gwt.event.shared.HasHandlers source,
                                 OkCancelEvent.OkCancelKind kind)
Fires the event.

Parameters:
source - the source of the event
sortList - the ColumnSortList of sorted columns
Returns:
the ColumnSortEvent that was fired

getType

public static com.google.gwt.event.shared.GwtEvent.Type<OkCancelEvent.Handler> getType()
Gets the type associated with this event.

Returns:
returns the handler type

isOk

public boolean isOk()
Returns true if this is an 'ok' event.


isCancel

public boolean isCancel()
Returns true if this is a 'cancel' event.


getAssociatedType

public com.google.gwt.event.shared.GwtEvent.Type<OkCancelEvent.Handler> getAssociatedType()
Overrides:
getAssociatedType in class com.google.gwt.event.shared.GwtEvent<OkCancelEvent.Handler>
See Also:
GwtEvent.getAssociatedType()

dispatch

protected void dispatch(OkCancelEvent.Handler handler)
Specified by:
dispatch in class com.google.gwt.event.shared.GwtEvent<OkCancelEvent.Handler>
See Also:
GwtEvent.dispatch(com.google.gwt.event.shared.EventHandler)


Copyright © 2012-2013 JBoss, a division of Red Hat. All Rights Reserved.