Documentation
¶
Overview ¶
Package browser is SWT's Browser widget (org.eclipse.swt.browser) for porting SWT code: the Browser class, its location, progress, title, status, window and authentication listeners and BrowserFunction. The engine is package webview (WKWebView, WebView2, WebKitGTK).
New programs that need a web page use package webview directly. Known gaps against SWT's Browser are listed in https://github.com/haiodo/gowt/blob/main/docs/webview-browser.md.
Index ¶
- Constants
- Variables
- func BrowserCheckParent(parentLike swt.CompositeLike) *swt.Composite
- func BrowserCheckStyle(style int32) int32
- func BrowserClearSessions()
- func BrowserGetCookie(name string, url string) string
- func BrowserSetCookie(value string, url string) bool
- func WebBrowserClearSessions()
- func WebBrowserCreateErrorString(error_ string) string
- func WebBrowserExtractError(error_ string) string
- func WebBrowserGetCookie(name string, url string) string
- func WebBrowserSetCookie(value string, url string, addToPending bool) bool
- func WebBrowserSetPendingCookies(pendingCookies *jrt.List)
- type AuthenticationEvent
- type AuthenticationEventLike
- type AuthenticationListener
- type Browser
- func (this *Browser) AddAuthenticationListener(listener AuthenticationListener)
- func (this *Browser) AddCloseWindowListener(listener CloseWindowListener)
- func (this *Browser) AddLocationListener(listener LocationListener)
- func (this *Browser) AddOpenWindowListener(listener OpenWindowListener)
- func (this *Browser) AddProgressListener(listener ProgressListener)
- func (this *Browser) AddStatusTextListener(listener StatusTextListener)
- func (this *Browser) AddTitleListener(listener TitleListener)
- func (this *Browser) AddVisibilityWindowListener(listener VisibilityWindowListener)
- func (this *Browser) AsBrowser() *Browser
- func (this *Browser) Back() bool
- func (this *Browser) CheckSubclass_()
- func (this *Browser) CheckWidget()
- func (this *Browser) Close() bool
- func (this *Browser) CreateWebBrowser(parent *swt.Composite, style int32) bool
- func (this *Browser) Evaluate(script string) any
- func (this *Browser) EvaluateScriptTrusted(script string, trusted bool) any
- func (this *Browser) Execute(script string) bool
- func (this *Browser) Forward() bool
- func (this *Browser) GetBrowserType() string
- func (this *Browser) GetJavascriptEnabled() bool
- func (this *Browser) GetStyle_() int32
- func (this *Browser) GetText() string
- func (this *Browser) GetUrl() string
- func (this *Browser) GetWebBrowser() any
- func (this *Browser) IsBackEnabled() bool
- func (this *Browser) IsFocusControl_() bool
- func (this *Browser) IsForwardEnabled() bool
- func (this *Browser) Refresh()
- func (this *Browser) RemoveAuthenticationListener(listener AuthenticationListener)
- func (this *Browser) RemoveCloseWindowListener(listener CloseWindowListener)
- func (this *Browser) RemoveLocationListener(listener LocationListener)
- func (this *Browser) RemoveOpenWindowListener(listener OpenWindowListener)
- func (this *Browser) RemoveProgressListener(listener ProgressListener)
- func (this *Browser) RemoveStatusTextListener(listener StatusTextListener)
- func (this *Browser) RemoveTitleListener(listener TitleListener)
- func (this *Browser) RemoveVisibilityWindowListener(listener VisibilityWindowListener)
- func (this *Browser) SetJavascriptEnabled(enabled bool)
- func (this *Browser) SetText(html string) bool
- func (this *Browser) SetTextHtmlTrusted(html string, trusted bool) bool
- func (this *Browser) SetUrl(url string) bool
- func (this *Browser) SetUrlUrlPostDataHeaders(url string, postData string, headers []string) bool
- func (this *Browser) Stop()
- func (this *Browser) String_() string
- type BrowserFactory
- type BrowserFunction
- func (this *BrowserFunction) AsBrowserFunction() *BrowserFunction
- func (this *BrowserFunction) Dispose()
- func (this *BrowserFunction) DisposeRemove(remove bool)
- func (this *BrowserFunction) Function(arguments []any) any
- func (this *BrowserFunction) GetBrowser() *Browser
- func (this *BrowserFunction) GetName() string
- func (this *BrowserFunction) Impl() BrowserFunctionImpl
- func (this *BrowserFunction) IsDisposed() bool
- func (this *BrowserFunction) SetImpl_(impl BrowserFunctionImpl)
- type BrowserFunctionImpl
- type BrowserFunctionLike
- type BrowserLike
- type CloseWindowListener
- type LocationAdapter
- type LocationAdapterLike
- type LocationEvent
- type LocationEventLike
- type LocationListener
- type LocationListenerAnon1
- type LocationListenerAnon2
- type OpenWindowListener
- type ProgressAdapter
- type ProgressAdapterLike
- type ProgressEvent
- type ProgressEventLike
- type ProgressListener
- type ProgressListenerAnon1
- type ProgressListenerAnon2
- type StatusTextEvent
- type StatusTextEventLike
- type StatusTextListener
- type TitleEvent
- type TitleEventLike
- type TitleListener
- type VisibilityWindowAdapter
- type VisibilityWindowAdapterLike
- type VisibilityWindowListener
- type VisibilityWindowListenerAnon1
- type VisibilityWindowListenerAnon2
- type WebBrowser
- func (this *WebBrowser) AddAuthenticationListener(listener AuthenticationListener)
- func (this *WebBrowser) AddCloseWindowListener(listener CloseWindowListener)
- func (this *WebBrowser) AddLocationListener(listener LocationListener)
- func (this *WebBrowser) AddOpenWindowListener(listener OpenWindowListener)
- func (this *WebBrowser) AddProgressListener(listener ProgressListener)
- func (this *WebBrowser) AddStatusTextListener(listener StatusTextListener)
- func (this *WebBrowser) AddTitleListener(listener TitleListener)
- func (this *WebBrowser) AddVisibilityWindowListener(listener VisibilityWindowListener)
- func (this *WebBrowser) AsWebBrowser() *WebBrowser
- func (this *WebBrowser) Back() bool
- func (this *WebBrowser) Close() bool
- func (this *WebBrowser) Create(parentLike swt.CompositeLike, style int32)
- func (this *WebBrowser) CreateFunction(functionLike BrowserFunctionLike)
- func (this *WebBrowser) DeregisterFunction(functionLike BrowserFunctionLike)
- func (this *WebBrowser) DestroyFunction(functionLike BrowserFunctionLike)
- func (this *WebBrowser) Evaluate(script string, trusted bool) any
- func (this *WebBrowser) EvaluateScript(script string) any
- func (this *WebBrowser) Execute(script string) bool
- func (this *WebBrowser) Forward() bool
- func (this *WebBrowser) GetBrowserType() string
- func (this *WebBrowser) GetDeleteFunctionString(functionName string) string
- func (this *WebBrowser) GetJavaCallDeclaration() string
- func (this *WebBrowser) GetNextFunctionIndex() int32
- func (this *WebBrowser) GetText() string
- func (this *WebBrowser) GetUrl() string
- func (this *WebBrowser) GetWebBrowser() any
- func (this *WebBrowser) Impl() WebBrowserImpl
- func (this *WebBrowser) IsBackEnabled() bool
- func (this *WebBrowser) IsFocusControl() bool
- func (this *WebBrowser) IsForwardEnabled() bool
- func (this *WebBrowser) NonBlockingExecute(script string)
- func (this *WebBrowser) Refresh()
- func (this *WebBrowser) RegisterFunction(functionLike BrowserFunctionLike)
- func (this *WebBrowser) RemoveAuthenticationListener(listener AuthenticationListener)
- func (this *WebBrowser) RemoveCloseWindowListener(listener CloseWindowListener)
- func (this *WebBrowser) RemoveLocationListener(listener LocationListener)
- func (this *WebBrowser) RemoveOpenWindowListener(listener OpenWindowListener)
- func (this *WebBrowser) RemoveProgressListener(listener ProgressListener)
- func (this *WebBrowser) RemoveStatusTextListener(listener StatusTextListener)
- func (this *WebBrowser) RemoveTitleListener(listener TitleListener)
- func (this *WebBrowser) RemoveVisibilityWindowListener(listener VisibilityWindowListener)
- func (this *WebBrowser) SendKeyEvent(eventLike swt.EventLike) bool
- func (this *WebBrowser) SetBrowser(browser_Like BrowserLike)
- func (this *WebBrowser) SetImpl_(impl WebBrowserImpl)
- func (this *WebBrowser) SetText(html string, trusted bool) bool
- func (this *WebBrowser) SetUrl(url string, postData string, headers []string) bool
- func (this *WebBrowser) Stop()
- func (this *WebBrowser) TranslateKey(key int32) int32
- func (this *WebBrowser) TranslateMnemonics() bool
- type WebBrowserImpl
- type WebBrowserLike
- type WebBrowser_EvaluateFunction
- type WebBrowser_EvaluateFunctionLike
- type WindowEvent
- type WindowEventLike
Constants ¶
const BrowserNO_INPUT_METHOD string = "org.eclipse.swt.internal.gtk.noInputMethod"
const BrowserPACKAGE_PREFIX string = "org.eclipse.swt.browser."
const BrowserPROPERTY_DEFAULTTYPE string = "org.eclipse.swt.browser.DefaultType"
const BrowserWEBIEW_UNAVAILABLE_DISABLED string = "org.eclipse.swt.browser.DisableWebViewUnavailableDialog"
const WebBrowserERROR_ID string = "org.eclipse.swt.browser.error"
const WebBrowserEXECUTE_ID string = "SWTExecuteTemporaryFunction"
Variables ¶
var BrowserDefaultType int32 = swt.DEFAULT
var WebBrowserCookieName string = ""
var WebBrowserCookieResult bool = false
var WebBrowserCookieUrl string = ""
var WebBrowserCookieValue string = ""
var WebBrowserKeyTable [][]int32 = [][]int32{} /* 118 elements not displayed */
var WebBrowserNativeClearSessions jrt.Runnable = nil
var WebBrowserNativeGetCookie jrt.Runnable = nil
var WebBrowserNativePendingCookies *jrt.List = jrt.NewList()
var WebBrowserNativeSetCookie jrt.Runnable = nil
Functions ¶
func BrowserCheckParent ¶
func BrowserCheckParent(parentLike swt.CompositeLike) *swt.Composite
func BrowserCheckStyle ¶
func BrowserClearSessions ¶
func BrowserClearSessions()
func BrowserGetCookie ¶
func BrowserSetCookie ¶
func WebBrowserClearSessions ¶
func WebBrowserClearSessions()
func WebBrowserExtractError ¶
func WebBrowserGetCookie ¶
func WebBrowserSetCookie ¶
Types ¶
type AuthenticationEvent ¶
type AuthenticationEvent struct {
*swt.TypedEvent
Location string
User string
Password string
Doit bool
}
func NewAuthenticationEvent ¶
func NewAuthenticationEvent(widgetLike swt.WidgetLike) *AuthenticationEvent
func (*AuthenticationEvent) AsAuthenticationEvent ¶
func (this *AuthenticationEvent) AsAuthenticationEvent() *AuthenticationEvent
func (*AuthenticationEvent) String_ ¶
func (this *AuthenticationEvent) String_() string
type AuthenticationEventLike ¶
type AuthenticationEventLike interface {
AsAuthenticationEvent() *AuthenticationEvent
}
type AuthenticationListener ¶
type AuthenticationListener interface {
Authenticate(event *AuthenticationEvent)
}
type Browser ¶
func NewBrowser ¶
func NewBrowser(parentLike swt.CompositeLike, style int32) *Browser
func (*Browser) AddAuthenticationListener ¶
func (this *Browser) AddAuthenticationListener(listener AuthenticationListener)
func (*Browser) AddCloseWindowListener ¶
func (this *Browser) AddCloseWindowListener(listener CloseWindowListener)
func (*Browser) AddLocationListener ¶
func (this *Browser) AddLocationListener(listener LocationListener)
func (*Browser) AddOpenWindowListener ¶
func (this *Browser) AddOpenWindowListener(listener OpenWindowListener)
func (*Browser) AddProgressListener ¶
func (this *Browser) AddProgressListener(listener ProgressListener)
func (*Browser) AddStatusTextListener ¶
func (this *Browser) AddStatusTextListener(listener StatusTextListener)
func (*Browser) AddTitleListener ¶
func (this *Browser) AddTitleListener(listener TitleListener)
func (*Browser) AddVisibilityWindowListener ¶
func (this *Browser) AddVisibilityWindowListener(listener VisibilityWindowListener)
func (*Browser) CheckSubclass_ ¶
func (this *Browser) CheckSubclass_()
func (*Browser) CheckWidget ¶
func (this *Browser) CheckWidget()
func (*Browser) CreateWebBrowser ¶
CreateWebBrowser is Browser.createWebBrowser (manual.txt): there is no Edge/IE fallback dialog.
func (*Browser) EvaluateScriptTrusted ¶
func (*Browser) GetBrowserType ¶
func (*Browser) GetJavascriptEnabled ¶
func (*Browser) GetWebBrowser ¶
func (*Browser) IsBackEnabled ¶
func (*Browser) IsFocusControl_ ¶
func (*Browser) IsForwardEnabled ¶
func (*Browser) RemoveAuthenticationListener ¶
func (this *Browser) RemoveAuthenticationListener(listener AuthenticationListener)
func (*Browser) RemoveCloseWindowListener ¶
func (this *Browser) RemoveCloseWindowListener(listener CloseWindowListener)
func (*Browser) RemoveLocationListener ¶
func (this *Browser) RemoveLocationListener(listener LocationListener)
func (*Browser) RemoveOpenWindowListener ¶
func (this *Browser) RemoveOpenWindowListener(listener OpenWindowListener)
func (*Browser) RemoveProgressListener ¶
func (this *Browser) RemoveProgressListener(listener ProgressListener)
func (*Browser) RemoveStatusTextListener ¶
func (this *Browser) RemoveStatusTextListener(listener StatusTextListener)
func (*Browser) RemoveTitleListener ¶
func (this *Browser) RemoveTitleListener(listener TitleListener)
func (*Browser) RemoveVisibilityWindowListener ¶
func (this *Browser) RemoveVisibilityWindowListener(listener VisibilityWindowListener)
func (*Browser) SetJavascriptEnabled ¶
func (*Browser) SetTextHtmlTrusted ¶
func (*Browser) SetUrlUrlPostDataHeaders ¶
type BrowserFactory ¶
type BrowserFactory struct{}
BrowserFactory hands Browser its engine (SWT's per-OS class of this name).
type BrowserFunction ¶
type BrowserFunction struct {
// contains filtered or unexported fields
}
func NewBrowserFunction ¶
func NewBrowserFunction(browser_Like BrowserLike, name string) *BrowserFunction
func NewBrowserFunctionBrowserNameTopFrameNames ¶
func NewBrowserFunctionBrowserNameTopFrameNames(browser_Like BrowserLike, name string, top bool, frameNames []string) *BrowserFunction
func (*BrowserFunction) AsBrowserFunction ¶
func (this *BrowserFunction) AsBrowserFunction() *BrowserFunction
func (*BrowserFunction) Dispose ¶
func (this *BrowserFunction) Dispose()
func (*BrowserFunction) DisposeRemove ¶
func (this *BrowserFunction) DisposeRemove(remove bool)
func (*BrowserFunction) Function ¶
func (this *BrowserFunction) Function(arguments []any) any
func (*BrowserFunction) GetBrowser ¶
func (this *BrowserFunction) GetBrowser() *Browser
func (*BrowserFunction) GetName ¶
func (this *BrowserFunction) GetName() string
func (*BrowserFunction) Impl ¶
func (this *BrowserFunction) Impl() BrowserFunctionImpl
func (*BrowserFunction) IsDisposed ¶
func (this *BrowserFunction) IsDisposed() bool
func (*BrowserFunction) SetImpl_ ¶
func (this *BrowserFunction) SetImpl_(impl BrowserFunctionImpl)
type BrowserFunctionImpl ¶
type BrowserFunctionImpl interface {
// contains filtered or unexported methods
}
type BrowserFunctionLike ¶
type BrowserFunctionLike interface {
AsBrowserFunction() *BrowserFunction
}
type BrowserLike ¶
type BrowserLike interface {
AsBrowser() *Browser
}
type CloseWindowListener ¶
type CloseWindowListener interface {
Close(event *WindowEvent)
}
type LocationAdapter ¶
type LocationAdapter struct {
}
func NewLocationAdapter ¶
func NewLocationAdapter() *LocationAdapter
func (*LocationAdapter) AsLocationAdapter ¶
func (this *LocationAdapter) AsLocationAdapter() *LocationAdapter
func (*LocationAdapter) Changed ¶
func (this *LocationAdapter) Changed(event *LocationEvent)
func (*LocationAdapter) Changing ¶
func (this *LocationAdapter) Changing(event *LocationEvent)
type LocationAdapterLike ¶
type LocationAdapterLike interface {
AsLocationAdapter() *LocationAdapter
}
type LocationEvent ¶
type LocationEvent struct {
*swt.TypedEvent
Location string
Top bool
Doit bool
}
func NewLocationEvent ¶
func NewLocationEvent(widgetLike swt.WidgetLike) *LocationEvent
func (*LocationEvent) AsLocationEvent ¶
func (this *LocationEvent) AsLocationEvent() *LocationEvent
func (*LocationEvent) String_ ¶
func (this *LocationEvent) String_() string
type LocationEventLike ¶
type LocationEventLike interface {
AsLocationEvent() *LocationEvent
}
type LocationListener ¶
type LocationListener interface {
Changing(event *LocationEvent)
Changed(event *LocationEvent)
}
func LocationListenerChangedAdapter ¶
func LocationListenerChangedAdapter(c func(*LocationEvent)) LocationListener
func LocationListenerChangingAdapter ¶
func LocationListenerChangingAdapter(c func(*LocationEvent)) LocationListener
type LocationListenerAnon1 ¶
type LocationListenerAnon1 struct {
LocationAdapter
// contains filtered or unexported fields
}
j2go: anonymous LocationAdapter subclass.
func (*LocationListenerAnon1) Changing ¶
func (this *LocationListenerAnon1) Changing(a0 *LocationEvent)
type LocationListenerAnon2 ¶
type LocationListenerAnon2 struct {
LocationAdapter
// contains filtered or unexported fields
}
j2go: anonymous LocationAdapter subclass.
func (*LocationListenerAnon2) Changed ¶
func (this *LocationListenerAnon2) Changed(a0 *LocationEvent)
type OpenWindowListener ¶
type OpenWindowListener interface {
Open(event *WindowEvent)
}
type ProgressAdapter ¶
type ProgressAdapter struct {
}
func NewProgressAdapter ¶
func NewProgressAdapter() *ProgressAdapter
func (*ProgressAdapter) AsProgressAdapter ¶
func (this *ProgressAdapter) AsProgressAdapter() *ProgressAdapter
func (*ProgressAdapter) Changed ¶
func (this *ProgressAdapter) Changed(event *ProgressEvent)
func (*ProgressAdapter) Completed ¶
func (this *ProgressAdapter) Completed(event *ProgressEvent)
type ProgressAdapterLike ¶
type ProgressAdapterLike interface {
AsProgressAdapter() *ProgressAdapter
}
type ProgressEvent ¶
type ProgressEvent struct {
*swt.TypedEvent
Current int32
Total int32
}
func NewProgressEvent ¶
func NewProgressEvent(widgetLike swt.WidgetLike) *ProgressEvent
func (*ProgressEvent) AsProgressEvent ¶
func (this *ProgressEvent) AsProgressEvent() *ProgressEvent
func (*ProgressEvent) String_ ¶
func (this *ProgressEvent) String_() string
type ProgressEventLike ¶
type ProgressEventLike interface {
AsProgressEvent() *ProgressEvent
}
type ProgressListener ¶
type ProgressListener interface {
Changed(event *ProgressEvent)
Completed(event *ProgressEvent)
}
func ProgressListenerChangedAdapter ¶
func ProgressListenerChangedAdapter(c func(*ProgressEvent)) ProgressListener
func ProgressListenerCompletedAdapter ¶
func ProgressListenerCompletedAdapter(c func(*ProgressEvent)) ProgressListener
type ProgressListenerAnon1 ¶
type ProgressListenerAnon1 struct {
ProgressAdapter
// contains filtered or unexported fields
}
j2go: anonymous ProgressAdapter subclass.
func (*ProgressListenerAnon1) Changed ¶
func (this *ProgressListenerAnon1) Changed(a0 *ProgressEvent)
type ProgressListenerAnon2 ¶
type ProgressListenerAnon2 struct {
ProgressAdapter
// contains filtered or unexported fields
}
j2go: anonymous ProgressAdapter subclass.
func (*ProgressListenerAnon2) Completed ¶
func (this *ProgressListenerAnon2) Completed(a0 *ProgressEvent)
type StatusTextEvent ¶
type StatusTextEvent struct {
*swt.TypedEvent
Text string
}
func NewStatusTextEvent ¶
func NewStatusTextEvent(widgetLike swt.WidgetLike) *StatusTextEvent
func (*StatusTextEvent) AsStatusTextEvent ¶
func (this *StatusTextEvent) AsStatusTextEvent() *StatusTextEvent
func (*StatusTextEvent) String_ ¶
func (this *StatusTextEvent) String_() string
type StatusTextEventLike ¶
type StatusTextEventLike interface {
AsStatusTextEvent() *StatusTextEvent
}
type StatusTextListener ¶
type StatusTextListener interface {
Changed(event *StatusTextEvent)
}
type TitleEvent ¶
type TitleEvent struct {
*swt.TypedEvent
Title string
}
func NewTitleEvent ¶
func NewTitleEvent(widgetLike swt.WidgetLike) *TitleEvent
func (*TitleEvent) AsTitleEvent ¶
func (this *TitleEvent) AsTitleEvent() *TitleEvent
func (*TitleEvent) String_ ¶
func (this *TitleEvent) String_() string
type TitleEventLike ¶
type TitleEventLike interface {
AsTitleEvent() *TitleEvent
}
type TitleListener ¶
type TitleListener interface {
Changed(event *TitleEvent)
}
type VisibilityWindowAdapter ¶
type VisibilityWindowAdapter struct {
}
func NewVisibilityWindowAdapter ¶
func NewVisibilityWindowAdapter() *VisibilityWindowAdapter
func (*VisibilityWindowAdapter) AsVisibilityWindowAdapter ¶
func (this *VisibilityWindowAdapter) AsVisibilityWindowAdapter() *VisibilityWindowAdapter
func (*VisibilityWindowAdapter) Hide ¶
func (this *VisibilityWindowAdapter) Hide(event *WindowEvent)
func (*VisibilityWindowAdapter) Show ¶
func (this *VisibilityWindowAdapter) Show(event *WindowEvent)
type VisibilityWindowAdapterLike ¶
type VisibilityWindowAdapterLike interface {
AsVisibilityWindowAdapter() *VisibilityWindowAdapter
}
type VisibilityWindowListener ¶
type VisibilityWindowListener interface {
Hide(event *WindowEvent)
Show(event *WindowEvent)
}
func VisibilityWindowListenerHideAdapter ¶
func VisibilityWindowListenerHideAdapter(c func(*WindowEvent)) VisibilityWindowListener
func VisibilityWindowListenerShowAdapter ¶
func VisibilityWindowListenerShowAdapter(c func(*WindowEvent)) VisibilityWindowListener
type VisibilityWindowListenerAnon1 ¶
type VisibilityWindowListenerAnon1 struct {
VisibilityWindowAdapter
// contains filtered or unexported fields
}
j2go: anonymous VisibilityWindowAdapter subclass.
func (*VisibilityWindowListenerAnon1) Hide ¶
func (this *VisibilityWindowListenerAnon1) Hide(a0 *WindowEvent)
type VisibilityWindowListenerAnon2 ¶
type VisibilityWindowListenerAnon2 struct {
VisibilityWindowAdapter
// contains filtered or unexported fields
}
j2go: anonymous VisibilityWindowAdapter subclass.
func (*VisibilityWindowListenerAnon2) Show ¶
func (this *VisibilityWindowListenerAnon2) Show(a0 *WindowEvent)
type WebBrowser ¶
type WebBrowser struct {
// contains filtered or unexported fields
}
func (*WebBrowser) AddAuthenticationListener ¶
func (this *WebBrowser) AddAuthenticationListener(listener AuthenticationListener)
func (*WebBrowser) AddCloseWindowListener ¶
func (this *WebBrowser) AddCloseWindowListener(listener CloseWindowListener)
func (*WebBrowser) AddLocationListener ¶
func (this *WebBrowser) AddLocationListener(listener LocationListener)
func (*WebBrowser) AddOpenWindowListener ¶
func (this *WebBrowser) AddOpenWindowListener(listener OpenWindowListener)
func (*WebBrowser) AddProgressListener ¶
func (this *WebBrowser) AddProgressListener(listener ProgressListener)
func (*WebBrowser) AddStatusTextListener ¶
func (this *WebBrowser) AddStatusTextListener(listener StatusTextListener)
func (*WebBrowser) AddTitleListener ¶
func (this *WebBrowser) AddTitleListener(listener TitleListener)
func (*WebBrowser) AddVisibilityWindowListener ¶
func (this *WebBrowser) AddVisibilityWindowListener(listener VisibilityWindowListener)
func (*WebBrowser) AsWebBrowser ¶
func (this *WebBrowser) AsWebBrowser() *WebBrowser
func (*WebBrowser) Back ¶
func (this *WebBrowser) Back() bool
func (*WebBrowser) Close ¶
func (this *WebBrowser) Close() bool
func (*WebBrowser) Create ¶
func (this *WebBrowser) Create(parentLike swt.CompositeLike, style int32)
func (*WebBrowser) CreateFunction ¶
func (this *WebBrowser) CreateFunction(functionLike BrowserFunctionLike)
func (*WebBrowser) DeregisterFunction ¶
func (this *WebBrowser) DeregisterFunction(functionLike BrowserFunctionLike)
func (*WebBrowser) DestroyFunction ¶
func (this *WebBrowser) DestroyFunction(functionLike BrowserFunctionLike)
func (*WebBrowser) EvaluateScript ¶
func (this *WebBrowser) EvaluateScript(script string) any
func (*WebBrowser) Execute ¶
func (this *WebBrowser) Execute(script string) bool
func (*WebBrowser) Forward ¶
func (this *WebBrowser) Forward() bool
func (*WebBrowser) GetBrowserType ¶
func (this *WebBrowser) GetBrowserType() string
func (*WebBrowser) GetDeleteFunctionString ¶
func (this *WebBrowser) GetDeleteFunctionString(functionName string) string
func (*WebBrowser) GetJavaCallDeclaration ¶
func (this *WebBrowser) GetJavaCallDeclaration() string
func (*WebBrowser) GetNextFunctionIndex ¶
func (this *WebBrowser) GetNextFunctionIndex() int32
func (*WebBrowser) GetText ¶
func (this *WebBrowser) GetText() string
func (*WebBrowser) GetUrl ¶
func (this *WebBrowser) GetUrl() string
func (*WebBrowser) GetWebBrowser ¶
func (this *WebBrowser) GetWebBrowser() any
func (*WebBrowser) Impl ¶
func (this *WebBrowser) Impl() WebBrowserImpl
func (*WebBrowser) IsBackEnabled ¶
func (this *WebBrowser) IsBackEnabled() bool
func (*WebBrowser) IsFocusControl ¶
func (this *WebBrowser) IsFocusControl() bool
func (*WebBrowser) IsForwardEnabled ¶
func (this *WebBrowser) IsForwardEnabled() bool
func (*WebBrowser) NonBlockingExecute ¶
func (this *WebBrowser) NonBlockingExecute(script string)
func (*WebBrowser) Refresh ¶
func (this *WebBrowser) Refresh()
func (*WebBrowser) RegisterFunction ¶
func (this *WebBrowser) RegisterFunction(functionLike BrowserFunctionLike)
func (*WebBrowser) RemoveAuthenticationListener ¶
func (this *WebBrowser) RemoveAuthenticationListener(listener AuthenticationListener)
func (*WebBrowser) RemoveCloseWindowListener ¶
func (this *WebBrowser) RemoveCloseWindowListener(listener CloseWindowListener)
func (*WebBrowser) RemoveLocationListener ¶
func (this *WebBrowser) RemoveLocationListener(listener LocationListener)
func (*WebBrowser) RemoveOpenWindowListener ¶
func (this *WebBrowser) RemoveOpenWindowListener(listener OpenWindowListener)
func (*WebBrowser) RemoveProgressListener ¶
func (this *WebBrowser) RemoveProgressListener(listener ProgressListener)
func (*WebBrowser) RemoveStatusTextListener ¶
func (this *WebBrowser) RemoveStatusTextListener(listener StatusTextListener)
func (*WebBrowser) RemoveTitleListener ¶
func (this *WebBrowser) RemoveTitleListener(listener TitleListener)
func (*WebBrowser) RemoveVisibilityWindowListener ¶
func (this *WebBrowser) RemoveVisibilityWindowListener(listener VisibilityWindowListener)
func (*WebBrowser) SendKeyEvent ¶
func (this *WebBrowser) SendKeyEvent(eventLike swt.EventLike) bool
func (*WebBrowser) SetBrowser ¶
func (this *WebBrowser) SetBrowser(browser_Like BrowserLike)
func (*WebBrowser) SetImpl_ ¶
func (this *WebBrowser) SetImpl_(impl WebBrowserImpl)
func (*WebBrowser) SetUrl ¶
func (this *WebBrowser) SetUrl(url string, postData string, headers []string) bool
func (*WebBrowser) Stop ¶
func (this *WebBrowser) Stop()
func (*WebBrowser) TranslateKey ¶
func (this *WebBrowser) TranslateKey(key int32) int32
func (*WebBrowser) TranslateMnemonics ¶
func (this *WebBrowser) TranslateMnemonics() bool
type WebBrowserImpl ¶
type WebBrowserImpl interface {
// contains filtered or unexported methods
}
type WebBrowserLike ¶
type WebBrowserLike interface {
AsWebBrowser() *WebBrowser
}
type WebBrowser_EvaluateFunction ¶
type WebBrowser_EvaluateFunction struct {
BrowserFunction
// contains filtered or unexported fields
}
func NewWebBrowserEvaluateFunction ¶
func NewWebBrowserEvaluateFunction(browser_Like BrowserLike, name string) *WebBrowser_EvaluateFunction
func (*WebBrowser_EvaluateFunction) AsWebBrowser_EvaluateFunction ¶
func (this *WebBrowser_EvaluateFunction) AsWebBrowser_EvaluateFunction() *WebBrowser_EvaluateFunction
type WebBrowser_EvaluateFunctionLike ¶
type WebBrowser_EvaluateFunctionLike interface {
AsWebBrowser_EvaluateFunction() *WebBrowser_EvaluateFunction
}
type WindowEvent ¶
type WindowEvent struct {
*swt.TypedEvent
Required bool
Browser *Browser
Location *swt.Point
Size *swt.Point
AddressBar bool
MenuBar bool
StatusBar bool
ToolBar bool
}
func NewWindowEvent ¶
func NewWindowEvent(widgetLike swt.WidgetLike) *WindowEvent
func (*WindowEvent) AsWindowEvent ¶
func (this *WindowEvent) AsWindowEvent() *WindowEvent
func (*WindowEvent) String_ ¶
func (this *WindowEvent) String_() string
type WindowEventLike ¶
type WindowEventLike interface {
AsWindowEvent() *WindowEvent
}
Source Files
¶
- browser_authenticationevent.go
- browser_authenticationlistener.go
- browser_browser.go
- browser_browserfunction.go
- browser_closewindowlistener.go
- browser_locationadapter.go
- browser_locationevent.go
- browser_locationlistener.go
- browser_openwindowlistener.go
- browser_progressadapter.go
- browser_progressevent.go
- browser_progresslistener.go
- browser_statustextevent.go
- browser_statustextlistener.go
- browser_titleevent.go
- browser_titlelistener.go
- browser_visibilitywindowadapter.go
- browser_visibilitywindowlistener.go
- browser_webbrowser.go
- browser_windowevent.go
- doc_manual.go
- webbrowser_manual.go