|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.storm.DynamicObject
ice.pilots.html4.DOM
ICEsoft's DOM implementation. If you want to have ICE Browser use your own DOM - this is the place to start. You should override createDDocument() and createDStyleSheet() methods. And then call DOM.setInstance(new MyDOM()).
| Field Summary |
| Fields inherited from class ice.storm.DynamicObject |
NOT_FOUND, SETD_IGNORE, SETD_NOT_FOUND, SETD_OK |
| Constructor Summary | |
protected |
DOM()
|
| Method Summary | |
protected void |
afterClone()
|
CSSStyleSheet |
createCSSStyleSheet(String title,
String media)
|
DDocument |
createDDocument(ThePilot pilot,
boolean isHtml)
This method is used by HTML rendering engine to create a Document. |
Document |
createDocument(String namespaceURI,
String qualifiedName,
DocumentType doctype)
Creates an XML Document object of the specified type with
its document element. |
DocumentType |
createDocumentType(String qualifiedName,
String publicId,
String systemId)
Creates an empty DocumentType node. |
DocumentType |
createDocumentType(String qualifiedName,
String publicId,
String systemId,
String internalSubset)
|
DStyleDeclaration |
createDStyleDeclaration(DCSSRule parentRule,
DElement e)
|
DStyleSheet |
createDStyleSheet(int defaultNamespace,
DNode ownerNode,
DStyleSheet parentStyleSheet,
DCSSRule ownerRule)
This method is used by HTML rendering engine to create a StyleSheet. |
HTMLDocument |
createHTMLDocument(String documentTitle)
|
Object |
execDynamicMethod(String name,
Object[] args,
DynEnv env)
Perform function-like actions for `name' with the given args. |
Object |
getDynamicValue(String name,
DynEnv env)
Returns the `key' field or Defs.NOT_FOUND if `name' does not exist. |
static DOM |
getInstance()
Deprecated. Use getInstance(StormBase) instead. |
static DOM |
getInstance(StormBase storm)
Get dom implementation instance associated with the given StormBase. |
protected DDocument |
getMasterDocument()
|
static TransformerFactory |
getTransformerFactory()
Deprecated. Use getTransformFactory(StormBase) instead. |
static TransformerFactory |
getTransformFactory(StormBase storm)
|
boolean |
hasFeature(String feature,
String version)
Test if the DOM implementation implements a specific feature. |
protected DOM |
makeClone()
|
DDocument |
parseEmbeddedDocumentFromReader(Reader reader)
|
DDocument |
parseEmbeddedDocumentFromString(String str)
|
int |
setDynamicValue(String name,
Object value,
DynEnv env)
Set field `name' to `value'. |
static void |
setInstance(DOM d)
Deprecated. Use setInstance(StormBase, DOM) instead. |
static void |
setInstance(StormBase storm,
DOM dom)
Set the instance of default DOMImplementation for the given StormBase
instance. |
static void |
setTransformerFactory(TransformerFactory tr)
Deprecated. Use setTransformFactory(StormBase, TransformerFactory) instead. |
static void |
setTransformFactory(StormBase storm,
TransformerFactory tr)
Set the default transformer factory to be used. |
| Methods inherited from class ice.storm.DynamicObject |
deleteSlot, deleteSlot, getDynamicScopeParent, getEnumeratableIds, getMethodPropertySource, getScriptDataLock, getScriptWrapper, getSlot, getSlot, hasSlot, hasSlot, javaReflectionTarget, readOnlySlots, script_toSource, script_toString, setScriptWrapperIfAbsent, setSlot, setSlot, unlinkAllSlots |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected DOM()
| Method Detail |
public static void setInstance(StormBase storm,
DOM dom)
StormBase
instance.
This can be done once per StormBase.
public static DOM getInstance(StormBase storm)
StormBase.
public static void setInstance(DOM d)
setInstance(StormBase, DOM) instead.
public static DOM getInstance()
getInstance(StormBase) instead.
public static TransformerFactory getTransformFactory(StormBase storm)
public static void setTransformFactory(StormBase storm,
TransformerFactory tr)
public static TransformerFactory getTransformerFactory()
getTransformFactory(StormBase) instead.
public static void setTransformerFactory(TransformerFactory tr)
setTransformFactory(StormBase, TransformerFactory) instead.
protected final DOM makeClone()
protected void afterClone()
protected DDocument getMasterDocument()
public DDocument parseEmbeddedDocumentFromString(String str)
public DDocument parseEmbeddedDocumentFromReader(Reader reader)
throws IOException
IOException
public boolean hasFeature(String feature,
String version)
DOMImplementation
hasFeature in interface DOMImplementationtrue if the feature is implemented in the
specified version, false otherwise.
public DocumentType createDocumentType(String qualifiedName,
String publicId,
String systemId,
String internalSubset)
public Document createDocument(String namespaceURI,
String qualifiedName,
DocumentType doctype)
DOMImplementationDocument object of the specified type with
its document element. HTML-only DOM implementations do not need to
implement this method.
createDocument in interface DOMImplementationDocument object.public HTMLDocument createHTMLDocument(String documentTitle)
public CSSStyleSheet createCSSStyleSheet(String title,
String media)
public DStyleSheet createDStyleSheet(int defaultNamespace,
DNode ownerNode,
DStyleSheet parentStyleSheet,
DCSSRule ownerRule)
public DDocument createDDocument(ThePilot pilot,
boolean isHtml)
public DStyleDeclaration createDStyleDeclaration(DCSSRule parentRule,
DElement e)
public DocumentType createDocumentType(String qualifiedName,
String publicId,
String systemId)
DOMImplementationDocumentType node. Entity declarations
and notations are not made available. Entity reference expansions and
default attribute additions do not occur. It is expected that a
future version of the DOM will provide a way for populating a
DocumentType.
createDocumentType in interface DOMImplementationDocumentType node with
Node.ownerDocument set to null.
public Object getDynamicValue(String name,
DynEnv env)
DynamicObject
getDynamicValue in class DynamicObject
public int setDynamicValue(String name,
Object value,
DynEnv env)
DynamicObject
setDynamicValue in class DynamicObject
public Object execDynamicMethod(String name,
Object[] args,
DynEnv env)
DynamicObject
execDynamicMethod in class DynamicObjectDynEnv
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||