public class ScriptBrowser
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ScriptBrowser.ScriptBrowserDownloadListener
DownloadListener for .user.js downloads.
|
static class |
ScriptBrowser.ScriptBrowserWebChromeClient
WebChromeClient setting the app's title and progress.
|
static class |
ScriptBrowser.ScriptBrowserWebViewClientGm
WebViewClientGm component for the ScriptBrowser intercepting .user.js
downloads.
|
| Modifier and Type | Field and Description |
|---|---|
protected ScriptManagerActivity |
activity |
protected android.widget.EditText |
addressField |
protected android.view.View |
browser |
protected ScriptStore |
scriptStore |
protected WebViewGm |
webView |
| Constructor and Description |
|---|
ScriptBrowser(ScriptManagerActivity activity,
ScriptStore scriptStore,
java.lang.String startUrl)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
back()
Goes back to the previous browser page.
|
protected boolean |
checkDownload(java.lang.String url) |
android.view.View |
getBrowser() |
java.lang.String |
getUrl() |
WebViewGm |
getWebView() |
protected void |
installScript(java.lang.String url)
Installs a new script.
|
void |
loadUrl(java.lang.String url)
Load the given URL.
|
void |
pause()
Stops any browser activity.
|
void |
resume()
Resumes browser timers.
|
protected ScriptManagerActivity activity
protected ScriptStore scriptStore
protected android.view.View browser
protected WebViewGm webView
protected android.widget.EditText addressField
public ScriptBrowser(ScriptManagerActivity activity, ScriptStore scriptStore, java.lang.String startUrl)
activity - the application's activityscriptStore - the database to useprotected void installScript(java.lang.String url)
url - the location of the script to installprotected boolean checkDownload(java.lang.String url)
public void loadUrl(java.lang.String url)
url - the address to loadpublic java.lang.String getUrl()
public boolean back()
public void pause()
public void resume()
public android.view.View getBrowser()
public WebViewGm getWebView()