|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.xj3d.ui.swt.widgets.LocationToolbar
public class LocationToolbar
An swt widget that implements the capabilities of the URL/Location toolbar.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.swt.widgets.Control |
|---|
handle |
| Constructor Summary | |
|---|---|
LocationToolbar(org.eclipse.swt.widgets.Composite parent,
BrowserCore core,
WorldLoaderManager wlm,
boolean urlReadOnly,
boolean showOpenButton,
boolean showReloadButton,
java.lang.String contentDir,
ErrorReporter reporter)
Create an instance of the panel configured to show or hide the controls as described. |
|
LocationToolbar(org.eclipse.swt.widgets.Composite parent,
BrowserCore core,
WorldLoaderManager wlm,
boolean urlReadOnly,
boolean showOpenButton,
boolean showReloadButton,
java.lang.String contentDir,
java.util.Properties skinProperties,
ErrorReporter reporter)
Create an instance of the panel configured to show or hide the controls as described. |
|
| Method Summary | |
|---|---|
void |
browserDisposed()
The browser has been disposed. |
void |
browserInitialized(VRMLScene scene)
The browser has been initialised with new content. |
void |
browserShutdown()
The browser has been shut down and the previous content is no longer valid. |
ErrorReporter |
getErrorReporter()
Fetch the error handler so that application code can post messages too. |
void |
loadURL(InputSource src)
Change the panels content to the provided URL. |
void |
loadURL(java.lang.String url)
Change the panels content to the provided URL. |
void |
run()
Update the text widget on the display thread. |
void |
setLayout(org.eclipse.swt.widgets.Layout layout)
Do nothing, we do our own layout |
void |
setProgressListener(org.ietf.uri.event.ProgressListener listener)
Set a progress listener for download progress. |
void |
setThrottle(FramerateThrottle throttle)
Set a Frame throttler. |
void |
urlLoadFailed(java.lang.String msg)
The tried to load a URL and failed. |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
|---|
changed, checkSubclass, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, 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, dispose, 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 |
| Constructor Detail |
|---|
public LocationToolbar(org.eclipse.swt.widgets.Composite parent,
BrowserCore core,
WorldLoaderManager wlm,
boolean urlReadOnly,
boolean showOpenButton,
boolean showReloadButton,
java.lang.String contentDir,
ErrorReporter reporter)
parent - - The SWT Composite widget that this will be added towlm - - The world loader manager.core - - The browser core implementation to send scene loads tourlReadOnly - - true to make the location bar read onlyshowOpenButton - - true to put an open button with the URL location barshowReloadButton - - true to put a reload button with the URL location barcontentDir - - The initial directory to load content from. Must be a full path.reporter - - The reporter instance to use or null
public LocationToolbar(org.eclipse.swt.widgets.Composite parent,
BrowserCore core,
WorldLoaderManager wlm,
boolean urlReadOnly,
boolean showOpenButton,
boolean showReloadButton,
java.lang.String contentDir,
java.util.Properties skinProperties,
ErrorReporter reporter)
parent - - The SWT Composite widget that this will be added towlm - - The world loader manager.core - - The browser core implementation to send scene loads tourlReadOnly - - true to make the location bar read onlyshowOpenButton - - true to put an open button with the URL location barshowReloadButton - - true to put a reload button with the URL location barcontentDir - - T initial directory to load content from. Must be a full path.reporter - - The reporter instance to use or nullskinProperties - - Customization of the browser buttons etc| Method Detail |
|---|
public void setLayout(org.eclipse.swt.widgets.Layout layout)
setLayout in class org.eclipse.swt.widgets.Compositepublic void run()
run in interface java.lang.Runnablepublic void browserInitialized(VRMLScene scene)
browserInitialized in interface BrowserCoreListenerscene - The scene of the new contentpublic void urlLoadFailed(java.lang.String msg)
urlLoadFailed in interface BrowserCoreListenermsg - An error message to go with the failurepublic void browserShutdown()
browserShutdown in interface BrowserCoreListenerpublic void browserDisposed()
browserDisposed in interface BrowserCoreListenerpublic ErrorReporter getErrorReporter()
getErrorReporter in interface FileHandler
public void loadURL(java.lang.String url)
throws java.io.IOException
loadURL in interface FileHandlerurl - The URL to load.
java.io.IOException - On a failed load or badly formatted URL
public void loadURL(InputSource src)
throws java.io.IOException
src - The source representation to load
java.io.IOException - On a failed load or badly formatted URLpublic void setProgressListener(org.ietf.uri.event.ProgressListener listener)
listener - The progress listener.public void setThrottle(FramerateThrottle throttle)
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||