Add separate events for different types
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…
Reference in New Issue