/** * {@inheritDoc} */ @Override public boolean execute(IActionHandler actionHandler, Map<String, Object> context) { setActionParameter(getSelectedModels(context), context); return super.execute(actionHandler, context); } }
/** * Forwards to the delegate. * <p> * {@inheritDoc} */ @Override public Collection<IGate> getActionabilityGates() { return delegate.getActionabilityGates(); }
/** * Forwards to the delegate. * <p> * {@inheritDoc} */ @Override public String getMnemonicAsString() { return delegate.getMnemonicAsString(); }
/** * Gets the current module and restarts it. {@inheritDoc} */ @Override public boolean execute(IActionHandler actionHandler, Map<String, Object> context) { Module module = getModule(context); boolean startupResult = restartModule(module, actionHandler, context); return startupResult && super.execute(actionHandler, context); }
/** * {@inheritDoc} */ @Override public boolean execute(IActionHandler actionHandler, Map<String, Object> context) { Object selectedModels = getActionParameter(context); if (!(selectedModels instanceof Collection<?>)) { selectedModels = Collections.singleton(selectedModels); } setSelectedModels((Collection<?>) selectedModels, context); return super.execute(actionHandler, context); } }
/** * {@inheritDoc} */ @Override public boolean execute(IActionHandler actionHandler, Map<String, Object> context) { return super.execute(actionHandler, context); } }
/** * {@inheritDoc} */ @Override public boolean execute(IActionHandler actionHandler, Map<String, Object> context) { if (actionHandler.execute(wrappedAction, context)) { if (getNextAction(context) != null) { return super.execute(actionHandler, context); } return true; } return false; }
/** * {@inheritDoc} */ @Override public String toString() { return new ToStringBuilder(this).append("name", getName()).append("description", getDescription()).append( "iconImageURL", getIcon()).toString(); }
/** * Forwards to the delegate. * <p> * {@inheritDoc} */ @Override public String getStyleName() { return delegate.getStyleName(); } }
/** * Constructs a new {@code ExitAction} instance. */ public ExitAction() { actualExitAction = new FrontendAction<E, F, G>() { @Override public boolean execute(IActionHandler actionHandler, Map<String, Object> context) { return getController(context).stop(); } }; }
/** * Forwards to the delegate. * <p> * {@inheritDoc} */ @Override public String getName() { return delegate.getName(); }
/** * Forwards to the delegate. * <p> * {@inheritDoc} */ @Override public String getPermId() { return delegate.getPermId(); }
/** * Declares the action as being able to run on a collection containing more * than 1 element. A multiSelectionEnabled = false action will be disabled * when the selection contains no or more than one element. * * @param multiSelectionEnabled * the multiSelectionEnabled to set. */ public void setMultiSelectionEnabled(boolean multiSelectionEnabled) { this.multiSelectionEnabled = multiSelectionEnabled; completeActionabilityGates(); }
/** * Forwards to the delegate. * <p> * {@inheritDoc} */ @Override public String getI18nName(ITranslationProvider translationProvider, Locale locale) { return delegate.getI18nName(translationProvider, locale); }
/** * Forwards to the delegate. * <p> * {@inheritDoc} */ @Override public Icon getIcon() { return delegate.getIcon(); }
/** * Forwards to the delegate. * <p> * {@inheritDoc} */ @Override public Collection<String> getGrantedRoles() { return delegate.getGrantedRoles(); }
/** * Forwards to the delegate. * <p> * {@inheritDoc} */ @Override public String getAcceleratorAsString() { return delegate.getAcceleratorAsString(); }
/** * Gets the frontend controller out of the action context. * * @param context * the action context. * @return the frontend controller. */ @Override protected IFrontendController<E, F, G> getController(Map<String, Object> context) { return getFrontendController(context); }
/** * Forwards to the delegate. * <p> * {@inheritDoc} */ @Override public String getDescription() { return delegate.getDescription(); }
/** * Forwards to the delegate. * <p> * {@inheritDoc} */ @Override public String getI18nDescription(ITranslationProvider translationProvider, Locale locale) { return delegate.getI18nDescription(translationProvider, locale); }