Add separate events for different types

MYC-Refactor
Hammy 3 years ago
parent 388f306f68
commit c59a3fc388

@ -0,0 +1,9 @@
package me.goudham.event;
import java.io.File;
import java.util.List;
import me.goudham.domain.OldClipboardContent;
public interface FileEvent extends ClipboardEvent {
void onCopyFiles(OldClipboardContent oldContent, List<File> newContent);
}

@ -0,0 +1,8 @@
package me.goudham.event;
import java.awt.image.BufferedImage;
import me.goudham.domain.OldClipboardContent;
public interface ImageEvent extends ClipboardEvent {
void onCopyImage(OldClipboardContent oldContent, BufferedImage newContent);
}

@ -0,0 +1,7 @@
package me.goudham.event;
import me.goudham.domain.OldClipboardContent;
public interface TextEvent extends ClipboardEvent {
void onCopyText(OldClipboardContent oldContent, String newContent);
}
Loading…
Cancel
Save