|
|
@ -11,7 +11,7 @@ abstract class ClipboardListener {
|
|
|
|
private EventManager eventManager = new EventManager();
|
|
|
|
private EventManager eventManager = new EventManager();
|
|
|
|
private boolean imageMonitored = true;
|
|
|
|
private boolean imageMonitored = true;
|
|
|
|
private boolean textMonitored = true;
|
|
|
|
private boolean textMonitored = true;
|
|
|
|
private boolean fileListMonitored = true;
|
|
|
|
private boolean fileMonitored = true;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Main entry point of execution for both {@link MacClipboardListener} and {@link WindowsOrUnixClipboardListener}
|
|
|
|
* Main entry point of execution for both {@link MacClipboardListener} and {@link WindowsOrUnixClipboardListener}
|
|
|
@ -45,6 +45,10 @@ abstract class ClipboardListener {
|
|
|
|
this.imageMonitored = !imageMonitored;
|
|
|
|
this.imageMonitored = !imageMonitored;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void toggleFileMonitored() {
|
|
|
|
|
|
|
|
this.fileMonitored = !fileMonitored;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
boolean isImageMonitored() {
|
|
|
|
boolean isImageMonitored() {
|
|
|
|
return imageMonitored;
|
|
|
|
return imageMonitored;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -57,16 +61,16 @@ abstract class ClipboardListener {
|
|
|
|
return textMonitored;
|
|
|
|
return textMonitored;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public boolean isFileListMonitored() {
|
|
|
|
void setTextMonitored(boolean textMonitored) {
|
|
|
|
return fileListMonitored;
|
|
|
|
this.textMonitored = textMonitored;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setFileListMonitored(boolean fileListMonitored) {
|
|
|
|
boolean isFileMonitored() {
|
|
|
|
this.fileListMonitored = fileListMonitored;
|
|
|
|
return fileMonitored;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void setTextMonitored(boolean textMonitored) {
|
|
|
|
void setFileMonitored(boolean fileMonitored) {
|
|
|
|
this.textMonitored = textMonitored;
|
|
|
|
this.fileMonitored = fileMonitored;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
EventManager getEventManager() {
|
|
|
|
EventManager getEventManager() {
|
|
|
|