public abstract class AbstractInteractiveAction<I,O> extends AbstractComponentWidgetAdapterAware implements InteractiveAction<I,O>
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DEFAULT_ALERT_DIALOG_OK |
protected static java.lang.String |
DEFAULT_ALERT_DIALOG_TEMPLATE_URL |
protected static java.lang.String |
DEFAULT_ALERT_DIALOG_WIDTH |
| Constructor and Description |
|---|
AbstractInteractiveAction() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDialogWindowAttribute(<any> context,
Window window)
Override the method in subclasses to supplement dialog window with attributes
|
boolean |
canPerform(<any> context) |
protected void |
doOnAlertOkClick(Messagebox.ClickEvent clickEvent)
Override the method in descent classes to process onOk event of alert dialog if needed
|
protected java.lang.String |
getAlertDialogTemplate() |
protected java.lang.String |
getAlertDialogWidth() |
protected java.util.Map<java.lang.String,java.lang.Object> |
getArguments(<any> context) |
protected java.lang.String |
getDialogHeight() |
protected abstract java.lang.String |
getDialogTemplate(<any> context) |
protected abstract java.lang.String |
getDialogTitle(<any> context) |
protected java.lang.String |
getDialogTop() |
protected java.lang.String |
getDialogWidth() |
protected Component |
getRoot() |
<any> |
perform(<any> context) |
void |
sendOutputDataToSocket(java.lang.String socketId,
java.lang.Object data)
Sends data object into specified socket.
|
void |
showAlertDialog(<any> context,
java.lang.String title,
java.lang.String message)
Shows alert dialog with title, message and button Ok.
|
protected static final java.lang.String DEFAULT_ALERT_DIALOG_WIDTH
protected static final java.lang.String DEFAULT_ALERT_DIALOG_TEMPLATE_URL
protected static final java.lang.String DEFAULT_ALERT_DIALOG_OK
protected abstract java.lang.String getDialogTemplate(<any> context)
protected abstract java.lang.String getDialogTitle(<any> context)
protected void addDialogWindowAttribute(<any> context,
Window window)
context - action contextwindow - window to supplement attributespublic boolean canPerform(<any> context)
public <any> perform(<any> context)
public void showAlertDialog(<any> context,
java.lang.String title,
java.lang.String message)
InteractiveActionshowAlertDialog in interface InteractiveAction<I,O>context - ActionContext to get localized labels by the codestitle - title codemessage - message codeprotected java.lang.String getAlertDialogTemplate()
protected java.lang.String getAlertDialogWidth()
public void sendOutputDataToSocket(java.lang.String socketId,
java.lang.Object data)
InteractiveActionsendOutputDataToSocket in interface InteractiveAction<I,O>socketId - Socket identifier to send datadata - data object to sendprotected void doOnAlertOkClick(Messagebox.ClickEvent clickEvent)
clickEvent - message box click eventprotected java.lang.String getDialogWidth()
protected java.lang.String getDialogHeight()
protected java.lang.String getDialogTop()
protected Component getRoot()
protected java.util.Map<java.lang.String,java.lang.Object> getArguments(<any> context)
Copyright © 2018 SAP SE. All Rights Reserved.