1 17 18 package org.objectweb.jac.aspects.gui.web; 19 20 import java.io.PrintWriter ; 21 import org.objectweb.jac.aspects.gui.*; 22 import org.objectweb.jac.core.rtti.MethodItem; 23 import org.objectweb.jac.util.ExtArrays; 24 25 public class StatusBar extends AbstractView implements StatusView, HTMLViewer { 26 27 MethodItem method = null; 28 29 public StatusBar(ViewFactory factory, DisplayContext context,MethodItem method) { 30 super(factory,context); 31 this.method = method; 32 } 33 34 36 String position; 37 38 42 public String getPosition() { 43 return position; 44 } 45 46 50 public void setPosition(String v) { 51 this.position = v; 52 } 53 54 public void showMessage(String message) { 55 } 56 57 59 public void genHTML(PrintWriter out) { 60 if (method!=null) { 61 out.println("<div class=\"statusBar\">"); 62 out.println(method.invoke(null,ExtArrays.emptyObjectArray)); 63 out.println("</div>"); 64 } 65 } 66 67 } 68 | Popular Tags |