1 31 32 package org.opencms.workplace.list; 33 34 import org.opencms.util.CmsStringUtil; 35 import org.opencms.workplace.CmsWorkplace; 36 import org.opencms.workplace.tools.A_CmsHtmlIconButton; 37 import org.opencms.workplace.tools.CmsHtmlIconButtonStyleEnum; 38 39 48 public class CmsListMultiAction extends A_CmsListAction { 49 50 55 public CmsListMultiAction(String id) { 56 57 super(id); 58 } 59 60 63 public String buttonHtml(CmsWorkplace wp) { 64 65 if (!isVisible()) { 66 return ""; 67 } 68 if (isEnabled()) { 69 String onClic = "listMAction('" 70 + getListId() 71 + "','" 72 + getId() 73 + "', '" 74 + CmsStringUtil.escapeJavaScript(wp.resolveMacros(getConfirmationMessage().key(wp.getLocale()))) 75 + "', " 76 + CmsHtmlList.NO_SELECTION_HELP_VAR 77 + ");"; 78 return A_CmsHtmlIconButton.defaultButtonHtml( 79 wp.getJsp(), 80 CmsHtmlIconButtonStyleEnum.SMALL_ICON_TEXT, 81 getId(), 82 getName().key(wp.getLocale()), 83 getHelpText().key(wp.getLocale()), 84 isEnabled(), 85 getIconPath(), 86 null, 87 onClic); 88 } 89 return ""; 90 } 91 92 } | Popular Tags |