public class SaveEvent
extends java.util.EventObject
BeforeSavingListener
,
AfterSavingListener
,
Serialized FormModifier and Type | Field and Description |
---|---|
static short |
AFTER_SAVING
Determines that has saved a file.
|
static short |
BEFORE_SAVING
Determines that's going to save a file.
|
Constructor and Description |
---|
SaveEvent(java.lang.Object source,
short id,
java.io.File file)
Creates a new
SaveEvent instance. |
Modifier and Type | Method and Description |
---|---|
java.io.File |
getFile()
Gets the file saved or going to be saved.
|
int |
getID()
Returns the event type.
|
protected java.lang.String |
paramString()
Returns a string representing the kind of this
Event . |
java.lang.String |
toString()
Returns a String representation of this EventObject.
|
public static final short BEFORE_SAVING
public static final short AFTER_SAVING
public SaveEvent(java.lang.Object source, short id, java.io.File file)
Creates a new SaveEvent
instance.
source
- id
- identifies this eventfile
- path of the associated filepublic java.lang.String toString()
toString
in class java.util.EventObject
protected java.lang.String paramString()
Event
.public int getID()
public java.io.File getFile()