/** * Forward to delegate. * {@inheritDoc} */ @Override public void putValue(String key, Object value) { delegate.putValue(key, value); }
/** * Configures a property view action by initializing its static context. * * @param propertyViewDescriptor * the property view descriptor the action is attached to. * @param propertyViewAction * the action to configure. */ public void configurePropertyViewAction(IPropertyViewDescriptor propertyViewDescriptor, RAction propertyViewAction) { Map<String, Object> staticContext = new HashMap<>(); staticContext.put(ActionContextConstants.PROPERTY_VIEW_DESCRIPTOR, propertyViewDescriptor); propertyViewAction.putValue(IAction.STATIC_CONTEXT_KEY, staticContext); }
/** * {@inheritDoc} */ @Override public boolean execute(IActionHandler actionHandler, Map<String, Object> context) { RAction callbackRAction = null; if (getCallbackAction() != null) { IView<RComponent> currentView = getView(context); callbackRAction = getActionFactory(context).createAction(getCallbackAction(), actionHandler, currentView, getLocale(context)); callbackRAction.putValue(IAction.STATIC_CONTEXT_KEY, getUiAction(context).getValue(IAction.STATIC_CONTEXT_KEY)); } ((MobileRemoteController) getController(context)).animatePage(null, getAnimation(), getDirection(), isReverse(), getDuration(), isHideView(), callbackRAction); return super.execute(actionHandler, context); } }