com.japisoft.xmlpad
Class LocationEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.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 com.japisoft.xmlpad.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 com.japisoft.xmlpad.LocationEvent getSharedInstance(java.lang.Object source,
                                                                  com.japisoft.fastparser.node.SimpleNode location)

getSource

public java.lang.Object getSource()
Overrides:
getSource in class java.util.EventObject

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 ""