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 HTTPView extends DataView { 52 private static Log log = LogFactory.getLog(ReachableView.class); 53 54 59 public HTTPView(final GUI gui, final Target target) { 61 super(gui, target); 62 setItem("http data"); 63 } 64 65 70 protected BasicComponent createComponent() { 71 return new HTTPComponent(getTarget()); 72 } 73 74 79 protected void disposed() { 80 super.disposed(); 81 getTarget().removeEvents(EventHTTP.class); 82 } 83 84 89 protected String browserName() { 90 return "HTTP download"; 91 } 92 93 98 protected String browserUnit() { 99 return "bit/s"; 100 } 101 102 107 protected Class browserEventClass() { 108 return EventHTTP.class; 109 } 110 111 116 protected StringBuffer getBrowserContent() { 117 return super.getBrowserContent(); 118 } 119 } 120 | Popular Tags |