ATTR_CHANGED, CHILD_ADDED, CHILD_REMOVED, DESCENDENT_ADDED, DESCENDENT_ATTR_CHANGED, DESCENDENT_REMOVED, DESCENDENT_VALUE_CHANGED, PARENT_CHANGED, PERMS_LOCK_CLEARED, PERMS_LOCK_SET, PROTO_ATTR_CHANGED, PROTO_CHILD_ADDED, PROTO_CHILD_REMOVED, PROTO_DESCENDENT_ADDED, PROTO_DESCENDENT_ATTR_CHANGED, PROTO_DESCENDENT_REMOVED, PROTO_DESCENDENT_VALUE_CHANGED, PROTO_VALUE_CHANGED, UPDATED, VALUE_CHANGED
Constructor and Description |
---|
ArrayNodeList()
default constructor
|
ArrayNodeList(Element e)
Create an ArrayNodeList from the children of an Element.
|
ArrayNodeList(List<? extends Node> list)
Create a new ArrayNodeList from an existing one.
|
Modifier and Type | Method and Description |
---|---|
void |
append(Obj newNode)
Appends an object to the end of this list.
|
Object |
clone()
Creates a copy of this node list.
|
String |
getClassAtom()
Returns the atomic name of this element's class.
|
String |
getClassName()
Gets the name of this object's class.
|
Node |
getNamedItem(String name)
Gets the first child of this node list with the given name.
|
Node |
getNamedItem(String aName,
String aClassName,
int nTargetOccurrence)
Get the first child of this node with the given
name |
void |
insert(Obj newNode,
Obj refNode)
Inserts an object before a specific node in this list.
|
Obj |
item(int index)
Gets this list's n'th object.
|
int |
length()
Returns the number of objects in this list.
|
void |
remove(Obj removeNode)
Removes an object from this list.
|
getScriptTable
isReadOnly, isReadOnly
addPeer, addPeeredNode, clearPeers, deafen, getClassTag, getPeer, getScriptMethodInfo, getScriptProperty, getScriptThis, invokeFunction, isDeaf, isMute, isSameClass, isSameClass, isSameClass, mute, notifyPeers, peerRemoved, removePeer, removePeeredNode, sendMessenge, setClass, setClassTag, setScriptProperty, unDeafen, unMute, updateFromPeer, validateUsage, validateUsageFailedIsFatal
public ArrayNodeList()
public ArrayNodeList(List<? extends Node> list)
list
- to clonepublic ArrayNodeList(Element e)
e
- The Element to grab children from.public void append(Obj newNode)
ListBase
append
in class ListBase
newNode
- the node to be appended.ListBase.append(Obj)
public Object clone()
NodeList
This method does not make copies of the underlying object implementations, it just place them in a new storage.
public String getClassAtom()
Obj
getClassAtom
in class ListBase
Obj.getClassAtom()
public String getClassName()
Obj
getClassName
in class ListBase
Obj.getClassName()
public Node getNamedItem(String name)
NodeList
getNamedItem
in class NodeList
name
- the name of the child node.public Node getNamedItem(String aName, String aClassName, int nTargetOccurrence)
NodeList
name
getNamedItem
in class NodeList
aName
- the name of the node to search for.aClassName
- the class of node to search for, ignored if null. If non-null, this String must be interned.nTargetOccurrence
- the occurrence to search for.name
and classname.NodeList.getNamedItem(String, String, int)
public void insert(Obj newNode, Obj refNode)
ListBase
insert
in class ListBase
newNode
- the object to be inserted.refNode
- the object to insert before.ListBase.insert(Obj, Obj)
public Obj item(int index)
ListBase
item
in class ListBase
index
- the 0-based index of the node within this list.ListBase.item(int)
public int length()
ListBase
length
in class ListBase
ListBase.length()
public void remove(Obj removeNode)
ListBase
remove
in class ListBase
removeNode
- the object to be removed.ListBase.remove(Obj)
Copyright © 2010 - 2020 Adobe. All Rights Reserved