1 2 23 24 package net.fenyo.gnetwatch.data; 25 26 import java.lang.reflect.*; 27 28 import net.fenyo.gnetwatch.*; 29 import net.fenyo.gnetwatch.GUI.*; 30 import net.fenyo.gnetwatch.targets.*; 31 32 import java.util.*; 33 34 import javax.swing.JFrame ; 35 import javax.swing.JLabel ; 36 37 import org.apache.commons.logging.Log; 38 import org.apache.commons.logging.LogFactory; 39 import org.eclipse.swt.SWT; 40 import org.eclipse.swt.browser.Browser; 41 import org.eclipse.swt.graphics.Image; 42 import org.eclipse.swt.widgets.Control; 43 import org.eclipse.swt.widgets.Text; 44 45 50 51 public class HTTPPagesView extends DataView { 52 private static Log log = LogFactory.getLog(HTTPPagesView.class); 53 54 59 public HTTPPagesView(final GUI gui, final Target target) { 61 super(gui, target); 62 setItem("http pages"); 63 } 64 65 70 protected BasicComponent createComponent() { 71 return new HTTPPagesComponent(getTarget()); 72 } 73 74 79 protected void disposed() { 80 super.disposed(); 81 getTarget().removeEvents(EventHTTPPages.class); 82 } 83 84 89 protected String browserName() { 90 return "HTTP download"; 92 } 93 94 99 protected String browserUnit() { 100 return "pages/s"; 101 } 102 103 108 protected Class browserEventClass() { 109 return EventHTTPPages.class; 110 } 111 112 117 protected StringBuffer getBrowserContent() { 118 return super.getBrowserContent(); 119 } 120 } 121 | Popular Tags |