Class SaveEvent

java.lang.Object
java.util.EventObject
org.gvsig.utils.save.SaveEvent
All Implemented Interfaces:
Serializable

public class SaveEvent extends EventObject
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 Details

    • BEFORE_SAVING

      public static final short BEFORE_SAVING
      Determines that's going to save a file.
      See Also:
    • AFTER_SAVING

      public static final short AFTER_SAVING
      Determines that has saved a file.
      See Also:
  • Constructor Details

    • SaveEvent

      public SaveEvent(Object source, short id, File file)

      Creates a new SaveEvent instance.

      Parameters:
      source -
      id - identifies this event
      file - path of the associated file
  • Method Details

    • toString

      public String toString()
      Returns a String representation of this EventObject.
      Overrides:
      toString in class EventObject
      Returns:
      A a String representation of this EventObject.
    • paramString

      protected String paramString()
      Returns a string representing the kind of this Event.
      Returns:
      a string representation of this event
    • getID

      public int getID()
      Returns the event type.
    • getFile

      public File getFile()
      Gets the file saved or going to be saved.
      Returns:
      the referenced file