/** * Adds an action applicable to more than one list item at once.<p> * * It will be executed with a list of <code>{@link CmsListItem}</code>s.<p> * * @param multiAction the action */ public void addMultiAction(CmsListMultiAction multiAction) { multiAction.setListId(getListId()); m_multiActions.addIdentifiableObject(multiAction.getId(), multiAction); }
/** * Adds an action applicable to more than one list item at once.<p> * * It will be executed with a list of <code>{@link CmsListItem}</code>s.<p> * * @param multiAction the action */ public void addMultiAction(CmsListMultiAction multiAction) { multiAction.setListId(getListId()); m_multiActions.addIdentifiableObject(multiAction.getId(), multiAction); }
String id = itMultiActions.next().getId(); if (ids.contains(id)) { throw new CmsIllegalStateException(Messages.get().container(Messages.ERR_DUPLICATED_ID_1, id));
String id = ((CmsListMultiAction)itMultiActions.next()).getId(); if (ids.contains(id)) { throw new CmsIllegalStateException(Messages.get().container(Messages.ERR_DUPLICATED_ID_1, id));
/** * @see org.opencms.workplace.tools.I_CmsHtmlIconButton#buttonHtml(CmsWorkplace) */ public String buttonHtml(CmsWorkplace wp) { if (!isVisible()) { return ""; } if (isEnabled()) { String onClic = "listMAction('" + getListId() + "','" + getId() + "', '" + CmsStringUtil.escapeJavaScript(wp.resolveMacros(getConfirmationMessage().key(wp.getLocale()))) + "', " + CmsHtmlList.NO_SELECTION_HELP_VAR + ");"; return A_CmsHtmlIconButton.defaultButtonHtml( CmsHtmlIconButtonStyleEnum.SMALL_ICON_TEXT, getId(), getName().key(wp.getLocale()), getHelpText().key(wp.getLocale()), isEnabled(), getIconPath(), null, onClic); } return ""; }
/** * @see org.opencms.workplace.tools.I_CmsHtmlIconButton#buttonHtml(CmsWorkplace) */ public String buttonHtml(CmsWorkplace wp) { if (!isVisible()) { return ""; } if (isEnabled()) { String onClic = "listMAction('" + getListId() + "','" + getId() + "', '" + CmsStringUtil.escapeJavaScript(wp.resolveMacros(getConfirmationMessage().key(wp.getLocale()))) + "', " + CmsHtmlList.NO_SELECTION_HELP_VAR + ");"; return A_CmsHtmlIconButton.defaultButtonHtml( CmsHtmlIconButtonStyleEnum.SMALL_ICON_TEXT, getId(), getName().key(wp.getLocale()), getHelpText().key(wp.getLocale()), isEnabled(), getIconPath(), null, onClic); } return ""; }