net.sourceforge.xwing.dom
Class NodeListModel

java.lang.Object
  extended byjavax.swing.AbstractListModel
      extended bynet.sourceforge.xwing.dom.NodeListModel
All Implemented Interfaces:
ListModel, Serializable

public class NodeListModel
extends AbstractListModel

Represents a read-only connection to a list of Nodes that is interested in the text content of each node. Only the first child of each node is considered. The connection is specified via a Node and an DOMXPath expression that selects a list of nodes in the context of that Node.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
NodeListModel(Node node, org.jaxen.dom.DOMXPath select)
           
 
Method Summary
 Object getElementAt(int index)
           
 int getSize()
           
 void setNode(Node node)
           
 void setSelect(org.jaxen.dom.DOMXPath select)
           
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeListModel

public NodeListModel(Node node,
                     org.jaxen.dom.DOMXPath select)
              throws Exception
Method Detail

setNode

public void setNode(Node node)
             throws Exception
Throws:
Exception

setSelect

public void setSelect(org.jaxen.dom.DOMXPath select)
               throws Exception
Throws:
Exception

getSize

public int getSize()

getElementAt

public Object getElementAt(int index)


Copyright © 2003 The Xwing Project. All Rights Reserved.