|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.akquinet.chameria.webview.WebViewFactory
public class WebViewFactory
Main component of the web view factory. This component receives the configuration and creates the browser windows and the web view. It also has a couple of up-calls to handle the configuration properly.
| Field Summary |
|---|
| Fields inherited from interface de.akquinet.chameria.services.BrowserService |
|---|
SCROLLBAR_ALWAYS_OFF, SCROLLBAR_ALWAYS_ON, SCROLLBAR_AS_NEEDED |
| Constructor Summary | |
|---|---|
WebViewFactory(org.osgi.framework.BundleContext ctxt)
Creates a WebViewFactory. |
|
| Method Summary | |
|---|---|
int |
getDefaultFixedFontSize()
|
int |
getDefaultFontSize()
|
int |
getHeight()
|
java.lang.String |
getHorizontalScrollBarPolicy()
|
com.trolltech.qt.core.Qt.ScrollBarPolicy |
getHorizontalScrollBarQTPolicy()
Gets the horizontal scroll bar policy. |
java.lang.String |
getLocalStorageLocation()
Gets the local storage location. |
java.lang.String |
getURL()
|
java.lang.String |
getVerticalScrollBarPolicy()
|
com.trolltech.qt.core.Qt.ScrollBarPolicy |
getVerticalScrollBarQTPolicy()
Gets the vertical scroll bar policy. |
int |
getWidth()
|
boolean |
isContextMenuEnabled()
|
boolean |
isContextMenuSupported()
Is the context menu supported ? |
boolean |
isDownloadSupported()
|
boolean |
isFullScreen()
|
boolean |
isInspectorEnabled()
Checks if the inspector is enabled. |
boolean |
isLocalStorageEnabled()
Checks if the local storage is enabled. |
boolean |
isMenuBarEnabled()
|
boolean |
isOpenWindowSupported()
|
boolean |
isPrintSupported()
|
boolean |
isResizable()
|
com.trolltech.qt.webkit.QWebView |
openWindow()
Open callback ( window.open). |
void |
print(com.trolltech.qt.webkit.QWebView view)
Print callback. |
void |
save(com.trolltech.qt.network.QNetworkReply reply)
Save callback (for unsupported content). |
void |
setContextMenu(boolean enabled)
|
void |
setDownloadSupport(boolean enabled)
|
void |
setFullScreen(boolean fullscreen)
|
void |
setHorizontalScrollBarPolicy(java.lang.String policy)
|
void |
setMenuBar(boolean enabled)
|
void |
setOpenWindowSupport(boolean enabled)
|
void |
setPrintSupport(boolean enabled)
|
void |
setResizable(boolean resizable)
|
void |
setSize(int width,
int height)
|
void |
setURL(java.lang.String url)
Configuration Property: set the initial URL. |
void |
setVerticalScrollBarPolicy(java.lang.String policy)
|
void |
start()
Starts the browser and loads the set url in the web view. |
void |
stop()
Deletes the create browser. |
static void |
write(java.io.InputStream in,
java.io.OutputStream out)
Utility method to copy a stream to another stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebViewFactory(org.osgi.framework.BundleContext ctxt)
ctxt - the bundle context.| Method Detail |
|---|
public void setURL(java.lang.String url)
setURL in interface BrowserServiceurl - the urlpublic void stop()
public void start()
public void print(com.trolltech.qt.webkit.QWebView view)
view - the view to printpublic void save(com.trolltech.qt.network.QNetworkReply reply)
reply - the url to save
public static void write(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
in - the stream to copyout - the destination
java.io.IOException - the stream cannot be copiedpublic com.trolltech.qt.webkit.QWebView openWindow()
window.open).
Checks if the 'open new window' feature is enabled. If so, creates the
web view
public boolean isContextMenuSupported()
true if the context menu is supported,
otherwise falsepublic com.trolltech.qt.core.Qt.ScrollBarPolicy getHorizontalScrollBarQTPolicy()
public com.trolltech.qt.core.Qt.ScrollBarPolicy getVerticalScrollBarQTPolicy()
public boolean isInspectorEnabled()
true if the inspector
is enabled.public boolean isLocalStorageEnabled()
true if the local storage
is enabled.public java.lang.String getLocalStorageLocation()
public int getHeight()
getHeight in interface BrowserServicepublic java.lang.String getURL()
getURL in interface BrowserServicepublic int getWidth()
getWidth in interface BrowserServicepublic int getDefaultFixedFontSize()
public int getDefaultFontSize()
public boolean isContextMenuEnabled()
isContextMenuEnabled in interface BrowserServicepublic boolean isDownloadSupported()
isDownloadSupported in interface BrowserServicepublic boolean isFullScreen()
isFullScreen in interface BrowserServicepublic boolean isMenuBarEnabled()
isMenuBarEnabled in interface BrowserServicepublic boolean isOpenWindowSupported()
isOpenWindowSupported in interface BrowserServicepublic boolean isPrintSupported()
isPrintSupported in interface BrowserServicepublic boolean isResizable()
isResizable in interface BrowserServicepublic void setContextMenu(boolean enabled)
setContextMenu in interface BrowserServicepublic void setDownloadSupport(boolean enabled)
setDownloadSupport in interface BrowserServicepublic void setFullScreen(boolean fullscreen)
setFullScreen in interface BrowserServicepublic void setHorizontalScrollBarPolicy(java.lang.String policy)
setHorizontalScrollBarPolicy in interface BrowserServicepublic void setMenuBar(boolean enabled)
setMenuBar in interface BrowserServicepublic void setOpenWindowSupport(boolean enabled)
setOpenWindowSupport in interface BrowserServicepublic void setPrintSupport(boolean enabled)
setPrintSupport in interface BrowserServicepublic void setResizable(boolean resizable)
setResizable in interface BrowserService
public void setSize(int width,
int height)
setSize in interface BrowserServicepublic void setVerticalScrollBarPolicy(java.lang.String policy)
setVerticalScrollBarPolicy in interface BrowserServicepublic java.lang.String getHorizontalScrollBarPolicy()
getHorizontalScrollBarPolicy in interface BrowserServicepublic java.lang.String getVerticalScrollBarPolicy()
getVerticalScrollBarPolicy in interface BrowserService
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||