|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.swt.widgets.Widget org.eclipse.swt.widgets.Control org.eclipse.swt.widgets.Scrollable org.eclipse.swt.widgets.Composite uk.ac.kcl.cch.jb.pliny.browser.BrowserViewer
Field Summary | |
protected org.eclipse.swt.widgets.ToolItem |
back
|
protected org.eclipse.swt.browser.Browser |
browser
|
protected BusyIndicator |
busy
|
static int |
BUTTON_BAR
Style parameter (value 2) indicating that the toolbar will be available on the web browser. |
org.eclipse.swt.dnd.Clipboard |
clipboard
|
org.eclipse.swt.widgets.Combo |
combo
|
protected BrowserEditor |
container
|
protected File |
file
|
protected Thread |
fileListenerThread
|
protected org.eclipse.swt.widgets.ToolItem |
forward
|
protected static List |
history
|
protected boolean |
loading
|
static int |
LOCATION_BAR
Style parameter (value 1) indicating that the URL and Go button will be on the local toolbar. |
protected org.eclipse.swt.browser.LocationListener |
locationListener2
|
protected boolean |
newWindow
|
protected static String |
PREF_INTERNAL_WEB_BROWSER_HISTORY
|
protected int |
progressWorked
|
protected static String |
PROPERTY_TITLE
|
protected List |
propertyListeners
|
protected boolean |
showToolbar
|
protected boolean |
showURLbar
|
protected Object |
syncObject
|
protected long |
timestamp
|
protected String |
title
|
protected IBrowserToolbarContribution[] |
toolbarContributions
|
Fields inherited from class org.eclipse.swt.widgets.Control |
handle |
Constructor Summary | |
BrowserViewer(org.eclipse.swt.widgets.Composite parent,
BrowserEditor container,
IBrowserToolbarContribution[] toolbarContributions)
Creates a new Web browser given its parent and a style value describing its behavior and appearance. |
|
BrowserViewer(org.eclipse.swt.widgets.Composite parent,
BrowserEditor container,
IBrowserToolbarContribution[] toolbarContributions,
int style)
|
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a property change listener to this instance. |
protected void |
addSynchronizationListener()
|
protected void |
addToHistory(String url)
|
boolean |
back()
Navigate to the previous session history item. |
void |
dispose()
|
protected void |
firePropertyChangeEvent(String propertyName,
Object oldValue,
Object newValue)
Fire a property change event. |
boolean |
forward()
Navigate to the next session history item. |
org.eclipse.swt.browser.Browser |
getBrowser()
Returns the underlying SWT browser widget. |
BrowserEditor |
getContainer()
|
protected static File |
getFile(String location)
|
String |
getURL()
Returns the current URL. |
void |
giveBusyIndicatorResource(Resource resource)
|
void |
home()
Navigate to the home URL. |
boolean |
isBackEnabled()
Returns true if the receiver can navigate to the previous
session history item, and false otherwise. |
boolean |
isForwardEnabled()
Returns true if the receiver can navigate to the next
session history item, and false otherwise. |
void |
refresh()
Refresh the current page. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a property change listener from this instance. |
protected void |
removeSynchronizationListener()
|
void |
runToolbarItem(int i)
|
void |
setContainer(BrowserEditor container)
|
boolean |
setFocus()
|
static void |
setInternalWebBrowserHistory(List list)
|
void |
setURL(String url)
Loads a URL. |
void |
stop()
Stop any loading and rendering activity. |
protected void |
updateBackNextBusy()
|
protected void |
updateHistory()
Update the history list to the global/shared copy. |
Methods inherited from class org.eclipse.swt.widgets.Composite |
changed, checkSubclass, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setLayout, setLayoutDeferred, setTabList |
Methods inherited from class org.eclipse.swt.widgets.Scrollable |
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
Methods inherited from class org.eclipse.swt.widgets.Control |
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update |
Methods inherited from class org.eclipse.swt.widgets.Widget |
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final String PREF_INTERNAL_WEB_BROWSER_HISTORY
public static final int LOCATION_BAR
public static final int BUTTON_BAR
protected static final String PROPERTY_TITLE
public org.eclipse.swt.dnd.Clipboard clipboard
public org.eclipse.swt.widgets.Combo combo
protected boolean showToolbar
protected boolean showURLbar
protected org.eclipse.swt.widgets.ToolItem back
protected org.eclipse.swt.widgets.ToolItem forward
protected BusyIndicator busy
protected boolean loading
protected static List history
protected org.eclipse.swt.browser.Browser browser
protected boolean newWindow
protected BrowserEditor container
protected String title
protected int progressWorked
protected List propertyListeners
protected IBrowserToolbarContribution[] toolbarContributions
protected File file
protected long timestamp
protected Thread fileListenerThread
protected org.eclipse.swt.browser.LocationListener locationListener2
protected Object syncObject
Constructor Detail |
public BrowserViewer(org.eclipse.swt.widgets.Composite parent, BrowserEditor container, IBrowserToolbarContribution[] toolbarContributions)
The style value is either one of the style constants defined in the class
header or class SWT
which is applicable to instances of
this class, or must be built by bitwise OR'ing together (that
is, using the int
"|" operator) two or more of those
SWT
style constants. The class description lists the style
constants that are applicable to the class. Style bits are also inherited
from superclasses.
parent
- a composite control which will be the parent of the new
instance (cannot be null)toolbarContributions
- public BrowserViewer(org.eclipse.swt.widgets.Composite parent, BrowserEditor container, IBrowserToolbarContribution[] toolbarContributions, int style)
Method Detail |
public org.eclipse.swt.browser.Browser getBrowser()
public void home()
public void setURL(String url)
url
- the URL to be loaded
IllegalArgumentException
- org.eclipse.swt.SWTException
- getURL()
protected void updateBackNextBusy()
public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- java.beans.PropertyChangeListenerpublic void removePropertyChangeListener(PropertyChangeListener listener)
listener
- java.beans.PropertyChangeListenerprotected void firePropertyChangeEvent(String propertyName, Object oldValue, Object newValue)
public boolean forward()
true
if the operation was successful and
false
otherwise
org.eclipse.swt.SWTException
- back
public boolean back()
true
if the operation was successful and
false
otherwise
org.eclipse.swt.SWTException
- forward
public boolean isBackEnabled()
true
if the receiver can navigate to the previous
session history item, and false
otherwise. Convenience
method that calls the underlying SWT browser.
org.eclipse.swt.SWTException
- back
public boolean isForwardEnabled()
true
if the receiver can navigate to the next
session history item, and false
otherwise. Convenience
method that calls the underlying SWT browser.
org.eclipse.swt.SWTException
- forward
public void stop()
org.eclipse.swt.SWTException
- public void refresh()
org.eclipse.swt.SWTException
- public static void setInternalWebBrowserHistory(List list)
protected void addToHistory(String url)
public void dispose()
public void runToolbarItem(int i)
public String getURL()
String
if there is no
current URL
org.eclipse.swt.SWTException
- setURL(String)
public boolean setFocus()
protected void updateHistory()
public BrowserEditor getContainer()
public void setContainer(BrowserEditor container)
protected void addSynchronizationListener()
protected static File getFile(String location)
protected void removeSynchronizationListener()
public void giveBusyIndicatorResource(Resource resource)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |