|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.storm.DynamicObject
ice.pilots.html4.DNode
ice.pilots.html4.DTextNode
This class contains the text for a given box parsed from the HTML. This object has no knowledge of the greater layout concerns of the TextBox. This object now physically reverses the text if the associated TextBox indicates the text is to be reversed.
| Field Summary |
| Fields inherited from class ice.pilots.html4.DNode |
doc, first, last, next, parent, prev |
| Fields inherited from class ice.storm.DynamicObject |
NOT_FOUND, SETD_IGNORE, SETD_NOT_FOUND, SETD_OK |
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Method Summary | |
void |
appendData(String arg)
Append the string to the end of the character data of the node. |
protected DNode |
appendDChild(DNode n)
|
Node |
cloneNode(boolean deep)
Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes. |
void |
deleteData(int offset,
int count)
not implemented |
Object |
execDynamicMethod(String name,
Object[] args,
DynEnv env)
Perform function-like actions for `name' with the given args. |
String |
getData()
The character data of the node that implements this interface. |
Object |
getDynamicValue(String name,
DynEnv env)
Returns the `key' field or Defs.NOT_FOUND if `name' does not exist. |
protected DNode |
getFirstDChild()
|
protected DNode |
getLastDChild()
|
int |
getLength()
The number of 16-bit units that are available through data
and the substringData method below. |
String |
getNodeName()
The name of this node, depending on its type; see the table above. |
short |
getNodeType()
A code representing the type of the underlying object, as defined above. |
String |
getNodeValue()
The value of this node, depending on its type; see the table above. |
void |
init()
Init the linebreaks. |
void |
insertData(int offset,
String arg)
Insert a string at the specified 16-bit unit offset. |
void |
normalize()
Fuse a sequence of sibling text elements into one. |
protected DNode |
removeDChild(DNode node)
|
void |
replaceData(int offset,
int count,
String arg)
not implemented |
void |
setData(String data)
Set the contents of this DTextNode. |
int |
setDynamicValue(String name,
Object value,
DynEnv env)
Set field `name' to `value'. |
void |
setNodeValue(String nodeValue)
|
Text |
splitText(int offset)
not implemented |
String |
substringData(int offset,
int count)
Extracts a range of data from the node. |
String |
toString()
|
| Methods inherited from class ice.storm.DynamicObject |
deleteSlot, getEnumeratableIds, getMethodPropertySource, getScriptDataLock, getScriptWrapper, getSlot, hasSlot, javaReflectionTarget, readOnlySlots, script_toSource, script_toString, setScriptWrapperIfAbsent, setSlot |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, removeChild, replaceChild, setPrefix |
| Method Detail |
public void init()
public void normalize()
normalize in interface Nodenormalize in class DNodepublic short getNodeType()
Node
getNodeType in interface NodegetNodeType in class DNodepublic String getNodeName()
Node
getNodeName in interface NodegetNodeName in class DNodepublic String getNodeValue()
Nodenull, setting it has no effect.
getNodeValue in interface NodegetNodeValue in class DNodepublic void setNodeValue(String nodeValue)
setNodeValue in interface NodesetNodeValue in class DNodeprotected DNode appendDChild(DNode n)
appendDChild in class DNodeprotected DNode removeDChild(DNode node)
removeDChild in class DNodeprotected DNode getFirstDChild()
getFirstDChild in class DNodeprotected DNode getLastDChild()
getLastDChild in class DNodepublic String getData()
CharacterDataCharacterData node. However,
implementation limits may mean that the entirety of a node's data may
not fit into a single DOMString. In such cases, the user
may call substringData to retrieve the data in
appropriately sized pieces.
getData in interface CharacterDatapublic void setData(String data)
setData in interface CharacterDatadata - String containing the new contents of this node.public int getLength()
CharacterDatadata
and the substringData method below. This may have the
value zero, i.e., CharacterData nodes may be empty.
getLength in interface CharacterData
public String substringData(int offset,
int count)
CharacterData
substringData in interface CharacterDataoffset and
count exceeds the length, then all 16-bit
units to the end of the data are returned.public void appendData(String arg)
CharacterDatadata provides access to the concatenation of
data and the DOMString specified.
appendData in interface CharacterData
public void insertData(int offset,
String arg)
CharacterData
insertData in interface CharacterData
public void deleteData(int offset,
int count)
deleteData in interface CharacterData
public void replaceData(int offset,
int count,
String arg)
replaceData in interface CharacterDatapublic Text splitText(int offset)
splitText in interface Textpublic Node cloneNode(boolean deep)
NodeparentNode is null.).
Element copies all attributes and their
values, including those generated by the XML processor to represent
defaulted attributes, but this method does not copy any text it
contains unless it is a deep clone, since the text is contained in a
child Text node. Cloning an Attribute
directly, as opposed to be cloned as part of an Element
cloning operation, returns a specified attribute (
specified is true). Cloning any other type
of node simply returns a copy of this node.
EntityReference clone are readonly
. In addition, clones of unspecified Attr nodes are
specified. And, cloning Document,
DocumentType, Entity, and
Notation nodes is implementation dependent.
cloneNode in interface NodecloneNode in class DNodepublic String toString()
public Object getDynamicValue(String name,
DynEnv env)
DynamicObject
getDynamicValue in class DNode
public int setDynamicValue(String name,
Object value,
DynEnv env)
DynamicObject
setDynamicValue in class DNode
public Object execDynamicMethod(String name,
Object[] args,
DynEnv env)
DynamicObject
execDynamicMethod in class DNode
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||