Class AbstractInteractiveAction<I,O>
java.lang.Object
com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
de.hybris.platform.ruleenginebackoffice.actions.AbstractInteractiveAction<I,O>
- All Implemented Interfaces:
com.hybris.cockpitng.actions.CockpitAction<I,,O> com.hybris.cockpitng.engine.ComponentWidgetAdapterAware,InteractiveAction<I,O>
- Direct Known Subclasses:
AbstractRuleProcessingForModuleAction,RuleCloneAction,RuleCreateFromTemplateAction,RuleCreatePromotionFromTemplateAction,RulesModuleSyncAction
public abstract class AbstractInteractiveAction<I,O>
extends com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
implements InteractiveAction<I,O>
AbstractInteractiveAction is the abstract class for the common functionality interactive actions.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDialogWindowAttribute(com.hybris.cockpitng.actions.ActionContext<I> context, org.zkoss.zul.Window window) Override the method in subclasses to supplement dialog window with attributesbooleancanPerform(com.hybris.cockpitng.actions.ActionContext<I> context) protected voiddoOnAlertOkClick(org.zkoss.zul.Messagebox.ClickEvent clickEvent) Override the method in descent classes to process onOk event of alert dialog if neededprotected Stringprotected StringgetArguments(com.hybris.cockpitng.actions.ActionContext<I> context) protected abstract StringgetDialogTemplate(com.hybris.cockpitng.actions.ActionContext<I> context) protected abstract StringgetDialogTitle(com.hybris.cockpitng.actions.ActionContext<I> context) protected org.zkoss.zk.ui.ComponentgetRoot()com.hybris.cockpitng.actions.ActionResult<O>voidsendOutputDataToSocket(String socketId, Object data) Sends data object into specified socket.voidshowAlertDialog(com.hybris.cockpitng.actions.ActionContext<I> context, String title, String message) Shows alert dialog with title, message and button Ok.Methods inherited from class com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
addSocketInputEventListener, getComponentID, handleSocketInputEvent, initialize, initializeDefaultEventListeners, registerStubInstance, sendOutput, setComponentID, unregisterStubInstanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hybris.cockpitng.actions.CockpitAction
getConfirmationMessage, needsConfirmation
-
Field Details
-
DEFAULT_ALERT_DIALOG_WIDTH
- See Also:
-
DEFAULT_ALERT_DIALOG_TEMPLATE_URL
- See Also:
-
DEFAULT_ALERT_DIALOG_OK
- See Also:
-
-
Constructor Details
-
AbstractInteractiveAction
public AbstractInteractiveAction()
-
-
Method Details
-
getDialogTemplate
-
getDialogTitle
-
addDialogWindowAttribute
protected void addDialogWindowAttribute(com.hybris.cockpitng.actions.ActionContext<I> context, org.zkoss.zul.Window window) Override the method in subclasses to supplement dialog window with attributes- Parameters:
context- action contextwindow- window to supplement attributes
-
canPerform
-
perform
-
showAlertDialog
public void showAlertDialog(com.hybris.cockpitng.actions.ActionContext<I> context, String title, String message) Description copied from interface:InteractiveActionShows alert dialog with title, message and button Ok.- Specified by:
showAlertDialogin interfaceInteractiveAction<I,O> - Parameters:
context- ActionContext to get localized labels by the codestitle- title codemessage- message code
-
getAlertDialogTemplate
-
getAlertDialogWidth
-
sendOutputDataToSocket
Description copied from interface:InteractiveActionSends data object into specified socket.- Specified by:
sendOutputDataToSocketin interfaceInteractiveAction<I,O> - Parameters:
socketId- Socket identifier to send datadata- data object to send
-
doOnAlertOkClick
protected void doOnAlertOkClick(org.zkoss.zul.Messagebox.ClickEvent clickEvent) Override the method in descent classes to process onOk event of alert dialog if needed- Parameters:
clickEvent- message box click event
-
getRoot
protected org.zkoss.zk.ui.Component getRoot() -
getArguments
-