1 19 20 package org.netbeans.modules.extbrowser; 21 22 import java.beans.PropertyChangeListener ; 23 import java.beans.PropertyChangeSupport ; 24 import java.net.URL ; 25 import org.openide.awt.HtmlBrowser; 26 27 32 public abstract class ExtBrowserImpl extends HtmlBrowser.Impl { 33 34 35 protected PropertyChangeSupport pcs; 36 37 38 protected URL url; 39 protected String title = ""; 41 42 protected ExtWebBrowser extBrowserFactory; 43 44 47 public ExtBrowserImpl () { 48 pcs = new PropertyChangeSupport (this); 49 } 50 51 52 public boolean isBackward() { return false; } 53 public boolean isForward() { return false; } 54 public void backward() { } 55 public void forward() { } 56 public boolean isHistory() { return false; } 57 public void showHistory() {} 58 public void stopLoading() { } 59 60 protected void setTitle (String title) { 61 return; 62 } 63 64 public String getTitle() { 65 return ""; 66 } 67 68 69 73 public String getStatusMessage() { 74 return ""; 75 } 76 77 80 public void reloadDocument() { 81 if (url != null) { 82 setURL(url); 83 } 84 } 85 86 87 91 public URL getURL() { 92 return url; 93 } 94 95 101 public abstract void setURL(URL url); 102 103 107 public final java.awt.Component getComponent() { 108 return null; 109 } 110 111 115 public void addPropertyChangeListener(PropertyChangeListener l) { 116 pcs.addPropertyChangeListener (l); 117 } 118 119 123 public void removePropertyChangeListener(PropertyChangeListener l) { 124 pcs.removePropertyChangeListener (l); 125 } 126 127 } 128 | Popular Tags |