public abstract static class HtmlBrowser.Impl extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROP_BACKWARD
backward property name
|
static String |
PROP_BROWSER_WAS_CLOSED |
static String |
PROP_FORWARD
forward property
|
static String |
PROP_HISTORY
history property name
|
static String |
PROP_LOADING
Name of boolean property which is fired when the browser is busy loading
its content.
|
static String |
PROP_STATUS_MESSAGE
The name of property representing status of html browser.
|
static String |
PROP_TITLE
Title property
|
static String |
PROP_URL
The name of property representing current URL.
|
Constructor and Description |
---|
Impl() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addPropertyChangeListener(PropertyChangeListener l)
Adds PropertyChangeListener to this browser.
|
abstract void |
backward()
Moves the browser forward.
|
void |
dispose()
Method invoked by the infrastructure when the browser component is no
longer needed.
|
abstract void |
forward()
Moves the browser forward.
|
abstract Component |
getComponent()
Returns visual component of html browser.
|
String |
getLocation()
Retrieve current browser location.
|
Lookup |
getLookup()
The content of this Lookup will be merged into browser's TopComponent Lookup.
|
abstract String |
getStatusMessage()
Returns status message representing status of html browser.
|
abstract String |
getTitle()
Returns title of the displayed page.
|
abstract URL |
getURL()
Returns current URL.
|
abstract boolean |
isBackward()
Is backward button enabled?
|
abstract boolean |
isForward()
Is forward button enabled?
|
abstract boolean |
isHistory()
Is history button enabled?
|
abstract void |
reloadDocument()
Reloads current html page.
|
abstract void |
removePropertyChangeListener(PropertyChangeListener l)
Removes PropertyChangeListener from this browser.
|
void |
setLocation(String location)
Change current browser location.
|
abstract void |
setURL(URL url)
Sets current URL.
|
abstract void |
showHistory()
Invoked when the history button is pressed.
|
abstract void |
stopLoading()
Stops loading of current html page.
|
public static final String PROP_STATUS_MESSAGE
public static final String PROP_URL
public static final String PROP_TITLE
public static final String PROP_FORWARD
public static final String PROP_BACKWARD
public static final String PROP_HISTORY
public static final String PROP_BROWSER_WAS_CLOSED
public static final String PROP_LOADING
public abstract Component getComponent()
public abstract void reloadDocument()
public abstract void stopLoading()
public abstract void setURL(URL url)
url
- URL to show in the browser.public abstract URL getURL()
public String getLocation()
public void setLocation(String location)
location
- New location to show in the browser. It doesn't
have to be a valid URL, e.g. "about:config" may be accepted as well.public abstract String getStatusMessage()
public abstract String getTitle()
public abstract boolean isForward()
public abstract void forward()
public abstract boolean isBackward()
public abstract void backward()
public abstract boolean isHistory()
public abstract void showHistory()
public abstract void addPropertyChangeListener(PropertyChangeListener l)
l
- Listener to add.public abstract void removePropertyChangeListener(PropertyChangeListener l)
l
- Listener to remove.public void dispose()
public Lookup getLookup()