1 19 20 package za.org.coefficient.modules.information; 21 22 import za.org.coefficient.interfaces.CoefficientContext; 23 import za.org.coefficient.modules.BaseModule; 24 import za.org.coefficient.util.ejb.VelocityScreenUtil; 25 26 import java.util.HashMap ; 27 28 42 public class About extends BaseModule { 43 45 public String getMainMethod() { 46 return "doInitialWork"; 48 } 49 50 public String getModuleDescription() { 51 return "about module"; 52 } 53 54 public String getModuleDisplayName() { 55 return "About"; 56 } 57 58 public CoefficientContext doInitialWork(CoefficientContext ctx) { 59 HashMap map = new HashMap (); 61 map.put("module", this); 62 StringBuffer sb = 63 VelocityScreenUtil.getProcessedScreen("index.vm", map); 64 65 ctx.setModuleContent(sb.toString(), getModuleDisplayName()); 67 return ctx; 68 } 69 } 70 | Popular Tags |