Package org.lobobrowser.html
Interface BrowserFrame
-
- All Known Implementing Classes:
SimpleBrowserFrame
public interface BrowserFrameTheBrowserFrameinterface represents a browser frame. A simple implementation of this interface is provided inSimpleBrowserFrame.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.awt.ComponentgetComponent()Gets the component that renders the frame.org.w3c.dom.DocumentgetContentDocument()Gets the content document.HtmlRendererContextgetHtmlRendererContext()Gets theHtmlRendererContextof the frame.voidloadURL(java.net.URL url)Loads a URL in the frame.voidsetDefaultMarginInsets(java.awt.Insets insets)Sets the default margin insets of the browser frame.voidsetDefaultOverflowX(int overflowX)Sets the default horizontal overflow of the browser frame.voidsetDefaultOverflowY(int overflowY)Sets the default vertical overflow of the browser frame.
-
-
-
Method Detail
-
getComponent
java.awt.Component getComponent()
Gets the component that renders the frame. This can be aHtmlPanel.
-
loadURL
void loadURL(java.net.URL url)
Loads a URL in the frame.
-
getContentDocument
org.w3c.dom.Document getContentDocument()
Gets the content document.
-
getHtmlRendererContext
HtmlRendererContext getHtmlRendererContext()
Gets theHtmlRendererContextof the frame.
-
setDefaultMarginInsets
void setDefaultMarginInsets(java.awt.Insets insets)
Sets the default margin insets of the browser frame.- Parameters:
insets- The margin insets.
-
setDefaultOverflowX
void setDefaultOverflowX(int overflowX)
Sets the default horizontal overflow of the browser frame.- Parameters:
overflowX- See constants inRenderState.
-
setDefaultOverflowY
void setDefaultOverflowY(int overflowY)
Sets the default vertical overflow of the browser frame.- Parameters:
overflowY- See constants inRenderState.
-
-