|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.google.web.bindery.event.shared.Event<H>
com.google.gwt.event.shared.GwtEvent<CellPreviewEvent.Handler<T>>
com.google.gwt.view.client.CellPreviewEvent<T>
T - the data type of the HasData sourcepublic class CellPreviewEvent<T>
Allows the previewing of events before they are fired to Cells.
| Nested Class Summary | |
|---|---|
static interface |
CellPreviewEvent.Handler<T>
Handler for CellPreviewEvent. |
| Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent |
|---|
GwtEvent.Type<H> |
| Constructor Summary | |
|---|---|
protected |
CellPreviewEvent(NativeEvent nativeEvent,
HasData<T> display,
Cell.Context context,
T value,
boolean isCellEditing,
boolean isSelectionHandled)
Construct a new CellPreviewEvent. |
| Method Summary | ||
|---|---|---|
protected void |
dispatch(CellPreviewEvent.Handler<T> handler)
Should only be called by HandlerManager. |
|
static
|
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.Type used to register this event, allowing an
EventBus to 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 HasData source of the event. |
|
int |
getIndex()
Get the index of the value where the event occurred. |
|
NativeEvent |
getNativeEvent()
Get the NativeEvent to 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. |
|
| 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 |
|---|
protected 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 handled| Method Detail |
|---|
public 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 handled
CellPreviewEvent 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 HasData<T> getDisplay()
HasData source of the event.
public 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)
|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||