1 25 26 package com.j2biz.blogunity.web.decorator; 27 28 import org.apache.commons.logging.Log; 29 import org.apache.commons.logging.LogFactory; 30 31 import com.j2biz.blogunity.pojo.Category; 32 33 public class GlobalCategoriesTableDecorator extends AbstractTableDecorator { 34 37 private static final Log log = LogFactory.getLog(GlobalCategoriesTableDecorator.class); 38 39 public String getActions() { 40 41 Category category = (Category) getCurrentRowObject(); 42 StringBuffer out = new StringBuffer (); 43 out.append("<nobr>"); 44 45 out.append("<a HREF=\""); 47 out.append(ctx); 48 out.append("/my/editGlobalCategoryForm?id="); 49 out.append(category.getId()); 50 out.append("\">"); 51 out.append(getMessageForKey("EDIT")); 52 out.append("</a>"); 53 54 out.append(" | "); 56 out.append("<a HREF=\""); 57 out.append(ctx); 58 out.append("/my/deleteGlobalCategoryConfirm?id="); 59 out.append(category.getId()); 60 out.append("\">"); 61 out.append(getMessageForKey("DELETE")); 62 out.append("</a>"); 63 64 out.append("</nobr>"); 65 66 return out.toString(); 67 } 68 69 70 71 } | Popular Tags |