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)
|
Methods inherited from class java.util.EventObject |
toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LocationEvent
public LocationEvent(java.lang.Object source,
com.japisoft.fastparser.node.SimpleNode location)
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 ""