public class DefaultShowContextMenuCallback extends AbstractDialogCallback implements ShowContextMenuCallback
ShowContextMenuCallback
implementation that displays the context menu in the
following cases:
ShowContextMenuCallback.Action, ShowContextMenuCallback.Params
Constructor and Description |
---|
DefaultShowContextMenuCallback(javax.swing.JComponent parent)
Creates a new callback instance.
|
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.
|
getParent
public DefaultShowContextMenuCallback(javax.swing.JComponent parent)
parent
- the parent component that is used to determine the component relative to which
the context menu should be displayed.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