Package org.gvsig.utils.save
Class SaveEvent
java.lang.Object
java.util.EventObject
org.gvsig.utils.save.SaveEvent
- All Implemented Interfaces:
Serializable
Event which indicates that a file is going to be saved, or has been saved.
- Author:
- Pablo Piqueras Bartolomé (pablo.piqueras@iver.es)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortDetermines that has saved a file.static final shortDetermines that's going to save a file.Fields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.EventObject
getSource
-
Field Details
-
BEFORE_SAVING
public static final short BEFORE_SAVINGDetermines that's going to save a file.- See Also:
-
AFTER_SAVING
public static final short AFTER_SAVINGDetermines that has saved a file.- See Also:
-
-
Constructor Details
-
SaveEvent
Creates a new
SaveEventinstance.- Parameters:
source-id- identifies this eventfile- path of the associated file
-
-
Method Details
-
toString
Returns a String representation of this EventObject.- Overrides:
toStringin classEventObject- Returns:
- A a String representation of this EventObject.
-
paramString
Returns a string representing the kind of thisEvent.- Returns:
- a string representation of this event
-
getID
public int getID()Returns the event type. -
getFile
Gets the file saved or going to be saved.- Returns:
- the referenced file
-