Package com.biglybt.ui.swt.skin
Class SWTSkinObjectBrowser
- java.lang.Object
-
- com.biglybt.ui.swt.skin.SWTSkinObjectBasic
-
- com.biglybt.ui.swt.skin.SWTSkinObjectBrowser
-
- All Implemented Interfaces:
ObfuscateImage
,PluginUISWTSkinObject
,SWTSkinObject
,java.util.EventListener
,org.eclipse.swt.events.PaintListener
,org.eclipse.swt.internal.SWTEventListener
public class SWTSkinObjectBrowser extends SWTSkinObjectBasic
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.biglybt.ui.swt.skin.SWTSkinObjectBasic
SWTSkinObjectBasic.GradientInfo
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
autoReloadPending
private BrowserWrapper
browser
private org.eclipse.swt.widgets.Composite
cArea
private ParameterListener
configBrowserProxyIDListener
private BrowserContext
context
private org.eclipse.swt.widgets.Composite
cParent
private static boolean
doneTheUglySWTFocusHack
private boolean
forceVisibleAfterLoad
private AEProxyFactory.PluginHTTPProxy
generic_proxy
private boolean
generic_proxy_init_done
private AESemaphore
generic_proxy_sem
private boolean
generic_proxy_set
private java.lang.String
proxy_reason
private java.lang.String
sStartURL
private java.lang.String
urlToUse
private boolean
use_generic_proxy
-
Fields inherited from class com.biglybt.ui.swt.skin.SWTSkinObjectBasic
alwaysHookPaintListener, bgColor, BORDER_GRADIENT, BORDER_ROUNDED, BORDER_ROUNDED_FILL, control, customTooltipID, debug, initialized, listeners, listeners_mon, painter, paintListenerHooked, parent, properties, sConfigID, sID, skin, suffixes, type
-
-
Constructor Summary
Constructors Constructor Description SWTSkinObjectBrowser(SWTSkin skin, SWTSkinProperties properties, java.lang.String sID, java.lang.String sConfigID, SWTSkinObject parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(BrowserContext.loadingListener l)
void
dispose()
void
enablePluginProxy(java.lang.String reason)
BrowserWrapper
getBrowser()
BrowserContext
getContext()
private AEProxyFactory.PluginHTTPProxy
getGenericProxy(java.lang.String target_url, java.lang.String reason)
java.lang.String
getStartURL()
void
init()
private void
initProxy(java.lang.String target_url, java.lang.String proxy_reason)
boolean
isPageLoading()
void
layout()
void
refresh()
void
restart()
void
setAutoReloadPending(boolean is_pending, boolean aborted)
private void
setBrowserURL(java.lang.String url)
boolean
setIsVisible(boolean visible, boolean walkup)
void
setStartURL(java.lang.String url)
void
setURL(java.lang.String url)
private void
updateBrowserProxy(AEProxyFactory.PluginHTTPProxy proxy)
-
Methods inherited from class com.biglybt.ui.swt.skin.SWTSkinObjectBasic
addListener, equals, getConfigID, getControl, getData, getDefaultVisibility, getListeners, getParent, getProperties, getSkin, getSkinObjectID, getSkinView, getSuffix, getTooltipID, getType, getViewID, isAlwaysHookPaintListener, isDebug, isDisposed, isVisible, layoutComplete, obfuscatedImage, paintControl, paintControl, relayout, removeListener, setAlwaysHookPaintListener, setBackground, setControl, setData, setDebug, setDefaultVisibility, setObfuscatedImageGenerator, setProperties, setSkinView, setTooltipID, setViewID, setVisible, switchSuffix, switchSuffix, switchSuffix, toString, triggerListeners, triggerListeners
-
-
-
-
Field Detail
-
generic_proxy_init_done
private boolean generic_proxy_init_done
-
generic_proxy
private AEProxyFactory.PluginHTTPProxy generic_proxy
-
generic_proxy_set
private boolean generic_proxy_set
-
generic_proxy_sem
private AESemaphore generic_proxy_sem
-
configBrowserProxyIDListener
private ParameterListener configBrowserProxyIDListener
-
browser
private BrowserWrapper browser
-
cParent
private org.eclipse.swt.widgets.Composite cParent
-
cArea
private org.eclipse.swt.widgets.Composite cArea
-
sStartURL
private java.lang.String sStartURL
-
context
private BrowserContext context
-
urlToUse
private java.lang.String urlToUse
-
forceVisibleAfterLoad
private boolean forceVisibleAfterLoad
-
use_generic_proxy
private boolean use_generic_proxy
-
proxy_reason
private java.lang.String proxy_reason
-
autoReloadPending
private boolean autoReloadPending
-
doneTheUglySWTFocusHack
private static boolean doneTheUglySWTFocusHack
-
-
Constructor Detail
-
SWTSkinObjectBrowser
public SWTSkinObjectBrowser(SWTSkin skin, SWTSkinProperties properties, java.lang.String sID, java.lang.String sConfigID, SWTSkinObject parent)
- Parameters:
skin
-properties
-sID
-sConfigID
-parent
-
-
-
Method Detail
-
initProxy
private void initProxy(java.lang.String target_url, java.lang.String proxy_reason)
-
getGenericProxy
private AEProxyFactory.PluginHTTPProxy getGenericProxy(java.lang.String target_url, java.lang.String reason)
-
init
public void init()
-
getBrowser
public BrowserWrapper getBrowser()
-
setURL
public void setURL(java.lang.String url)
-
restart
public void restart()
-
layout
public void layout()
-
getContext
public BrowserContext getContext()
-
getStartURL
public java.lang.String getStartURL()
-
setStartURL
public void setStartURL(java.lang.String url)
-
setBrowserURL
private void setBrowserURL(java.lang.String url)
-
updateBrowserProxy
private void updateBrowserProxy(AEProxyFactory.PluginHTTPProxy proxy)
-
enablePluginProxy
public void enablePluginProxy(java.lang.String reason)
-
setAutoReloadPending
public void setAutoReloadPending(boolean is_pending, boolean aborted)
-
isPageLoading
public boolean isPageLoading()
-
setIsVisible
public boolean setIsVisible(boolean visible, boolean walkup)
- Overrides:
setIsVisible
in classSWTSkinObjectBasic
-
addListener
public void addListener(BrowserContext.loadingListener l)
-
refresh
public void refresh()
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceSWTSkinObject
- Overrides:
dispose
in classSWTSkinObjectBasic
-
-