T - the data type of the HasData sourcepublic class CellPreviewEvent<T> extends GwtEvent<CellPreviewEvent.Handler<T>>
| Modifier and Type | Class and Description | 
|---|---|
| static interface  | CellPreviewEvent.Handler<T>Handler for  CellPreviewEvent. | 
GwtEvent.Type<H>| Modifier | Constructor and Description | 
|---|---|
| protected  | CellPreviewEvent(NativeEvent nativeEvent,
                HasData<T> display,
                Cell.Context context,
                T value,
                boolean isCellEditing,
                boolean isSelectionHandled)Construct a new  CellPreviewEvent. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | dispatch(CellPreviewEvent.Handler<T> handler)Should only be called by  HandlerManager. | 
| static <T> CellPreviewEvent<T> | fire(HasCellPreviewHandlers<T> source,
    NativeEvent nativeEvent,
    HasData<T> display,
    Cell.Context context,
    T value,
    boolean isCellEditing,
    boolean isSelectionHandled)Fires a cell preview event on all registered handlers in the handler
 manager. | 
| GwtEvent.Type<CellPreviewEvent.Handler<T>> | getAssociatedType()Returns the  Event.Typeused to register this event, allowing anEventBusto find handlers of the appropriate class. | 
| int | getColumn()Get the column index of the Cell where the event occurred if the source is
 a table. | 
| Cell.Context | getContext()Get the cell  Cell.Context. | 
| HasData<T> | getDisplay()Get the  HasDatasource of the event. | 
| int | getIndex()Get the index of the value where the event occurred. | 
| NativeEvent | getNativeEvent()Get the  NativeEventto preview. | 
| static GwtEvent.Type<CellPreviewEvent.Handler<?>> | getType()Gets the type associated with this event. | 
| T | getValue()Get the value where the event occurred. | 
| boolean | isCanceled()Check if the event has been canceled. | 
| boolean | isCellEditing()Check whether or not the cell where the event occurred is being edited. | 
| boolean | isSelectionHandled()Check whether or not selection is being handled by the widget or one of its
 Cells. | 
| void | setCanceled(boolean cancel)Cancel the event and prevent it from firing to the Cell. | 
assertLive, getSource, isLive, kill, revivesetSource, toDebugString, toStringprotected CellPreviewEvent(NativeEvent nativeEvent, HasData<T> display, Cell.Context context, T value, boolean isCellEditing, boolean isSelectionHandled)
CellPreviewEvent.nativeEvent - the event to previewdisplay - the HasData source of the eventcontext - the Cell Cell.Contextvalue - the value where the event occurredisCellEditing - indicates whether or not the cell is being editedisSelectionHandled - indicates whether or not selection is handledpublic static <T> CellPreviewEvent<T> fire(HasCellPreviewHandlers<T> source, NativeEvent nativeEvent, HasData<T> display, Cell.Context context, T value, boolean isCellEditing, boolean isSelectionHandled)
T - the old value typesource - the source of the handlersnativeEvent - the event to previewdisplay - the HasData source of the eventcontext - the Cell Cell.Contextvalue - the value where the event occurredisCellEditing - indicates whether or not the cell is being editedisSelectionHandled - indicates whether or not selection is handledCellPreviewEvent that was firedpublic static GwtEvent.Type<CellPreviewEvent.Handler<?>> getType()
public GwtEvent.Type<CellPreviewEvent.Handler<T>> getAssociatedType()
EventEvent.Type used to register this event, allowing an
 EventBus to find handlers of the appropriate class.getAssociatedType in class GwtEvent<CellPreviewEvent.Handler<T>>public int getColumn()
public Cell.Context getContext()
Cell.Context.Cell.Contextpublic int getIndex()
public NativeEvent getNativeEvent()
NativeEvent to preview.public T getValue()
public boolean isCanceled()
setCanceled(boolean)public boolean isCellEditing()
public boolean isSelectionHandled()
public void setCanceled(boolean cancel)
cancel - true to cancel the event, false to allow itprotected void dispatch(CellPreviewEvent.Handler<T> handler)
GwtEventHandlerManager. In other words, do not use
 or call.dispatch in class GwtEvent<CellPreviewEvent.Handler<T>>handler - handlerEventBus.dispatchEvent(Event, Object)