org.freehep.util.io
Class LineNumberWriter.LineNumberEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.freehep.util.io.LineNumberWriter.LineNumberEvent
All Implemented Interfaces:
Serializable
Enclosing class:
LineNumberWriter

public static class LineNumberWriter.LineNumberEvent
extends EventObject

Event to be used by the LineNumberListener interface.

Version:
$Id: LineNumberWriter.java 8584 2006-08-10 23:06:37Z duns $
Author:
duns
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
LineNumberWriter.LineNumberEvent(Object source, int lineNo)
          Create a LineNumberEvent
 
Method Summary
 int getLineNumber()
           
 String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LineNumberWriter.LineNumberEvent

public LineNumberWriter.LineNumberEvent(Object source,
                                        int lineNo)
Create a LineNumberEvent

Parameters:
source - event source
lineNo - current line number
Method Detail

getLineNumber

public int getLineNumber()
Returns:
current line number

toString

public String toString()
Overrides:
toString in class EventObject


Copyright © 2000-2007 FreeHEP. All Rights Reserved.