Xj3D 2.0 VRML/X3D Code API

org.xj3d.ui.swt.net.content
Class SWTContentHandlerFactory

java.lang.Object
  extended by org.web3d.net.content.VRMLContentHandlerFactory
      extended by org.xj3d.ui.swt.net.content.SWTContentHandlerFactory
All Implemented Interfaces:
org.ietf.uri.ContentHandlerFactory

public class SWTContentHandlerFactory
extends VRMLContentHandlerFactory

A VRMLContentHandlerFactory subclass supporting SWT UI toolkit dependent content handlers.

Version:
$Revision: 1.2 $
Author:
Rex Melton

Constructor Summary
SWTContentHandlerFactory(BrowserCore browser, WorldLoaderManager wlm)
          Create a default content handler factory that does not chain to any further packages.
SWTContentHandlerFactory(BrowserCore browser, WorldLoaderManager wlm, org.ietf.uri.ContentHandlerFactory fac)
          Create a content handler factory that may delegate to another factory if this one cannot support the content types requested.
 
Method Summary
 org.ietf.uri.ContentHandler createContentHandler(java.lang.String contentType)
          Create a content handler for the given mime type.
 
Methods inherited from class org.web3d.net.content.VRMLContentHandlerFactory
getWrappedFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SWTContentHandlerFactory

public SWTContentHandlerFactory(BrowserCore browser,
                                WorldLoaderManager wlm)
Create a default content handler factory that does not chain to any further packages. This is the same as calling VRMLContentHandlerFactory(factory, clk, null).

Parameters:
browser - The core representation of the browser
wlm - Loader manager for doing async calls

SWTContentHandlerFactory

public SWTContentHandlerFactory(BrowserCore browser,
                                WorldLoaderManager wlm,
                                org.ietf.uri.ContentHandlerFactory fac)
Create a content handler factory that may delegate to another factory if this one cannot support the content types requested. If the reference is null, then there is no chained factory.

Parameters:
browser - The core representation of the browser
fac - The factory to delegate to if we fail
wlm - Loader manager for doing async calls
Method Detail

createContentHandler

public org.ietf.uri.ContentHandler createContentHandler(java.lang.String contentType)
Create a content handler for the given mime type. If this cannot create a handler then the request will be handled by it's parent.

Specified by:
createContentHandler in interface org.ietf.uri.ContentHandlerFactory
Overrides:
createContentHandler in class VRMLContentHandlerFactory
Parameters:
contentType - The MIME type of the handler needed
Returns:
A valid content handler for the type or null

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium