com.teamdev.jxbrowser
Interface WebBrowserWindow


public interface WebBrowserWindow

Provides access to the created browser window object. The Mozilla engine communicates window operations via this interface.


Method Summary
 void close()
          Close the window completely.
 boolean isClosed()
           
 boolean isResizable()
           
 void setModal(boolean modal)
          Requests window modality.
 void setResizable(boolean resizable)
          Set window resizeble
 void setSize(int width, int height)
          Request display size change.
 void setVisible(boolean visible)
          Show or hide the window.
 void setWebBrowser(WebBrowser webBrowser)
          Sets the component that embeds the browser presentation for this window.
 

Method Detail

setWebBrowser

void setWebBrowser(WebBrowser webBrowser)
Sets the component that embeds the browser presentation for this window. Implementors would commonly embed the component returned from WebBrowser.getComponent method into the window.

Parameters:
webBrowser - browser instance to display.

setModal

void setModal(boolean modal)
Requests window modality.

Parameters:
modal - requested modality.

setVisible

void setVisible(boolean visible)
Show or hide the window. If modal display is requested, most clients would expect this method not to return until the window is dismissed.

Parameters:
visible - if true show the window, otherwise hide it.

setSize

void setSize(int width,
             int height)
Request display size change. In certain cases, e.g. tabbed browser, such requests may be ignored.

Parameters:
width - new width.
height - new height.

close

void close()
Close the window completely. Resources associated with the windows may be released at this point.


isClosed

boolean isClosed()
Returns:
closed window state

setResizable

void setResizable(boolean resizable)
Set window resizeble

Parameters:
resizeble - whether window to be resizeble

isResizable

boolean isResizable()
Returns:
current resizeble state