com.gargoylesoftware.htmlunit.javascript.host
Class TextImpl

java.lang.Object
  extended by org.mozilla.javascript.ScriptableObject
      extended by com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
          extended by com.gargoylesoftware.htmlunit.javascript.host.NodeImpl
              extended by com.gargoylesoftware.htmlunit.javascript.host.CharacterDataImpl
                  extended by com.gargoylesoftware.htmlunit.javascript.host.TextImpl
All Implemented Interfaces:
java.io.Serializable, org.mozilla.javascript.ConstProperties, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.Scriptable

public final class TextImpl
extends CharacterDataImpl

A javascript object for Text.

Version:
$Revision: 1.3 $
Author:
David K. Taylor, Chris Erskine, Ahmed Ashour
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mozilla.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
 
Fields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
TextImpl()
 Create an instance.
 
Method Summary
 void initialize()
 Initialize this object
 void jsConstructor()
 Javascript constructor.
 java.lang.Object jsxFunction_splitText(int offset)
 Split a Text node in two.
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.CharacterDataImpl
jsxFunction_appendData, jsxFunction_deleteData, jsxFunction_insertData, jsxFunction_replaceData, jsxFunction_substringData, jsxGet_data, jsxGet_length, jsxSet_data
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.NodeImpl
executeEvent, fireEvent, getEventHandler, jsxFunction_addEventListener, jsxFunction_appendChild, jsxFunction_attachEvent, jsxFunction_cloneNode, jsxFunction_detachEvent, jsxFunction_hasChildNodes, jsxFunction_insertBefore, jsxFunction_isSameNode, jsxFunction_removeChild, jsxFunction_removeEventListener, jsxFunction_replaceChild, jsxGet_childNodes, jsxGet_firstChild, jsxGet_lastChild, jsxGet_nextSibling, jsxGet_nodeName, jsxGet_nodeType, jsxGet_nodeValue, jsxGet_parentNode, jsxGet_previousSibling, jsxSet_nodeValue, setEventHandler
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
get, getBooleanArg, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getHtmlElementOrDie, getHtmlElementOrNull, getIntArg, getObjectArg, getStringArg, makeScriptableFor, setDomNode, setHtmlElement
 
Methods inherited from class org.mozilla.javascript.ScriptableObject
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextImpl

public TextImpl()
Create an instance. Javascript objects must have a default constructor.

Method Detail

initialize

public void initialize()
Initialize this object


jsConstructor

public void jsConstructor()
Javascript constructor. This must be declared in every javascript file because the rhino engine won't walk up the hierarchy looking for constructors.


jsxFunction_splitText

public java.lang.Object jsxFunction_splitText(int offset)
Split a Text node in two.

Parameters:
offset - The character position at which to split the Text node.
Returns:
The Text node that was split from this node.


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.