com.japisoft.xmlpad
Class LocationEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.japisoft.xmlpad.LocationEvent
All Implemented Interfaces:
java.io.Serializable

public class LocationEvent
extends java.util.EventObject

Event object part for the LocationListener

Author:
(c) 2003 JAPISOFT/Alexandre Brillant
See Also:
LocationListener, Serialized Form

Constructor Summary
LocationEvent(java.lang.Object source, com.japisoft.fastparser.node.SimpleNode location)
           
 
Method Summary
 com.japisoft.fastparser.node.SimpleNode getDocumentLocation()
           
static LocationEvent getSharedInstance(java.lang.Object source, com.japisoft.fastparser.node.SimpleNode location)
           
 java.lang.Object getSource()
           
 java.lang.String getXPathLocation()
           
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocationEvent

public LocationEvent(java.lang.Object source,
                     com.japisoft.fastparser.node.SimpleNode location)
Method Detail

getSharedInstance

public static LocationEvent getSharedInstance(java.lang.Object source,
                                              com.japisoft.fastparser.node.SimpleNode location)

getSource

public java.lang.Object getSource()

getDocumentLocation

public com.japisoft.fastparser.node.SimpleNode getDocumentLocation()
Returns:
a node from the current document for the caret position. This method may return null

getXPathLocation

public java.lang.String getXPathLocation()
Returns:
the current XPath location. This method can return an empty string ""