Files
TDT4100-project/src/main/java/app/events/FileSelectedEvent.java

30 lines
579 B
Java

package app.events;
/**
* Event signalizing that a file was selected in the filetree.
*
* Not to be confused with {@link OpenFileEvent}
*/
public class FileSelectedEvent extends Event {
private String path;
/**
* Event signalizing that a file was selected in the filetree.
*
* Not to be confused with {@link OpenFileEvent}
* @param path The path of the selected file
*/
public FileSelectedEvent(String path) {
this.path = path;
}
/**
* @return The path of the selected file
*/
public String getPath() {
return this.path;
}
}