public final class DefaultShowContextMenuCallback extends WidgetHolder<Composite> implements ShowContextMenuCallback
ShowContextMenuCallback
implementation that displays the context menu when
right clicking on an element on the loaded web page that has the custom context menu. For
example, Adobe Flash.
In other cases the context menu is not displayed at all.
ShowContextMenuCallback.Action, ShowContextMenuCallback.Params
Constructor and Description |
---|
DefaultShowContextMenuCallback(Composite parent) |
Modifier and Type | Method and Description |
---|---|
void |
on(ShowContextMenuCallback.Params params,
ShowContextMenuCallback.Action tell)
Invoked when the callback needs a response for the given callback parameters.
|
public DefaultShowContextMenuCallback(Composite parent)
public void on(ShowContextMenuCallback.Params params, ShowContextMenuCallback.Action tell)
AsyncCallback
on
in interface AsyncCallback<ShowContextMenuCallback.Params,ShowContextMenuCallback.Action>
params
- the object that represents the callback parameterstell
- the object that can be used to provide the callback response. One of its
methods must be invoked to provide the response. Once the response has been
provided, any call to the object methods will result in the IllegalStateException