Rename OldClipboardContent.java to ClipboardContent.java
parent
4ed59cc691
commit
cf598be605
@ -0,0 +1,35 @@
|
||||
package me.goudham.domain;
|
||||
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
|
||||
public class ClipboardContent {
|
||||
private String text;
|
||||
private BufferedImage bufferedImage;
|
||||
private List<File> files;
|
||||
|
||||
public ClipboardContent(String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
public ClipboardContent(BufferedImage bufferedImage) {
|
||||
this.bufferedImage = bufferedImage;
|
||||
}
|
||||
|
||||
public ClipboardContent(List<File> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
public BufferedImage getBufferedImage() {
|
||||
return bufferedImage;
|
||||
}
|
||||
|
||||
public String getText() {
|
||||
return text;
|
||||
}
|
||||
|
||||
public List<File> getFiles() {
|
||||
return files;
|
||||
}
|
||||
}
|
@ -1,35 +0,0 @@
|
||||
package me.goudham.domain;
|
||||
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
|
||||
public class OldClipboardContent {
|
||||
private String oldText;
|
||||
private BufferedImage oldImage;
|
||||
private List<File> oldFiles;
|
||||
|
||||
public OldClipboardContent(String oldText) {
|
||||
this.oldText = oldText;
|
||||
}
|
||||
|
||||
public OldClipboardContent(BufferedImage oldImage) {
|
||||
this.oldImage = oldImage;
|
||||
}
|
||||
|
||||
public OldClipboardContent(List<File> oldFiles) {
|
||||
this.oldFiles = oldFiles;
|
||||
}
|
||||
|
||||
public BufferedImage getOldImage() {
|
||||
return oldImage;
|
||||
}
|
||||
|
||||
public String getOldText() {
|
||||
return oldText;
|
||||
}
|
||||
|
||||
public List<File> getOldFiles() {
|
||||
return oldFiles;
|
||||
}
|
||||
}
|
@ -1,8 +1,8 @@
|
||||
package me.goudham.event;
|
||||
|
||||
import java.awt.image.BufferedImage;
|
||||
import me.goudham.domain.OldClipboardContent;
|
||||
import me.goudham.domain.ClipboardContent;
|
||||
|
||||
public interface ImageEvent extends ClipboardEvent {
|
||||
void onCopyImage(OldClipboardContent oldContent, BufferedImage newContent);
|
||||
void onCopyImage(ClipboardContent oldContent, BufferedImage newContent);
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
package me.goudham.event;
|
||||
|
||||
import me.goudham.domain.OldClipboardContent;
|
||||
import me.goudham.domain.ClipboardContent;
|
||||
|
||||
public interface TextEvent extends ClipboardEvent {
|
||||
void onCopyText(OldClipboardContent oldContent, String newContent);
|
||||
void onCopyText(ClipboardContent oldContent, String newContent);
|
||||
}
|
||||
|
Loading…
Reference in New Issue