IBrowserPanel Interface

com.bea.ide.ui.browser
IBrowserPanel Interface

public interface IBrowserPanel

Interface for exposing an embedded browser window in a JPanel. This will allow you to interact with a native browser, and to get the JPanel it needs to render itself.

Nested Class Summary

public static interfaceIBrowserPanel.IBrowserEvents
           Interface for getting events from the browser.

Method Summary

public void
addEventListener(IBrowserPanel.IBrowserEvents listener)
will add this event listener to the list of listeners.
public void
back()
will have the browser go back to the previous page.
public void
clear()
clears the currently shown page from the browser
public void
destroyBrowser()
will destroy the native browser instance.
public void
forward()
will have the browser go forward to the next page.
public JPanel
getPanel()
gets the JPanel where the browser will render itself.
public void
navigate(URL url)
navigates the browser to the specified URL.
public void
refresh()
will have the browser refresh the current page.
public void
removeEventListener(IBrowserPanel.IBrowserEvents listener)
will add this event listener to the list of listeners.
public void
setFocus()
will set the focus of the current browser panel.
public void
stop()
will have the browser stop the current operation.
public void
updateBrowser()
will have the native browser update it's window in the native windowing system.

Method Detail

addEventListener(IBrowserPanel.IBrowserEvents) Method

public void addEventListener(IBrowserPanel.IBrowserEvents listener)
will add this event listener to the list of listeners.


back() Method

public void back()
will have the browser go back to the previous page.


clear() Method

public void clear()
clears the currently shown page from the browser


destroyBrowser() Method

public void destroyBrowser()
will destroy the native browser instance.


forward() Method

public void forward()
will have the browser go forward to the next page.


getPanel() Method

public JPanel getPanel()
gets the JPanel where the browser will render itself.

Returns

a JPanel

navigate(URL) Method

public void navigate(URL url)
navigates the browser to the specified URL. This funtion will return right away, not when the browser has finished navigation.

Parameters

url
the address for the browser to navigate to

refresh() Method

public void refresh()
will have the browser refresh the current page.


removeEventListener(IBrowserPanel.IBrowserEvents) Method

public void removeEventListener(IBrowserPanel.IBrowserEvents listener)
will add this event listener to the list of listeners.


setFocus() Method

public void setFocus()
will set the focus of the current browser panel.


stop() Method

public void stop()
will have the browser stop the current operation.


updateBrowser() Method

public void updateBrowser()
will have the native browser update it's window in the native windowing system.