org.stanwood.media.actions
Interface IActionEventHandler

All Known Implementing Classes:
ActionPerformer

public interface IActionEventHandler

This is implemented by the action performer so that actions can notify it about changes in the media directory.


Method Summary
 void sendEventDeletedFile(java.io.File file)
          Called when a file in the media directory is deleted
 void sendEventNewFile(java.io.File file)
          Called when a new file is created in the media directory
 void sendEventRenamedFile(java.io.File oldName, java.io.File newName)
          This is called when a file in the media directory is renamed
 

Method Detail

sendEventNewFile

void sendEventNewFile(java.io.File file)
                      throws ActionException
Called when a new file is created in the media directory

Parameters:
file - The file that was created
Throws:
ActionException - Thrown if their are any problems

sendEventDeletedFile

void sendEventDeletedFile(java.io.File file)
                          throws ActionException
Called when a file in the media directory is deleted

Parameters:
file - The file what was deleted
Throws:
ActionException - Thrown if their are any problems

sendEventRenamedFile

void sendEventRenamedFile(java.io.File oldName,
                          java.io.File newName)
                          throws ActionException
This is called when a file in the media directory is renamed

Parameters:
oldName - The old name of the file
newName - The new name of the file
Throws:
ActionException - Thrown if their are any problems