|
|
@ -45,7 +45,7 @@ public class MyClipboard {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Adds an {@link ClipboardEventListener} to the underlying {@link ClipboardListener}
|
|
|
|
* Adds a {@link ClipboardEventListener} to the underlying {@link ClipboardListener}
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param clipboardEventListener The {@link ClipboardEventListener} to be added
|
|
|
|
* @param clipboardEventListener The {@link ClipboardEventListener} to be added
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -53,6 +53,15 @@ public class MyClipboard {
|
|
|
|
clipboardListener.addEventListener(clipboardEventListener);
|
|
|
|
clipboardListener.addEventListener(clipboardEventListener);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Removes a {@link ClipboardEventListener} from the underlying {@link ClipboardListener}
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param clipboardEventListener The {@link ClipboardEventListener} to be removed
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public void removeEventListener(ClipboardEventListener clipboardEventListener) {
|
|
|
|
|
|
|
|
clipboardListener.removeEventListener(clipboardEventListener);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private static boolean isMac() {
|
|
|
|
private static boolean isMac() {
|
|
|
|
return SystemUtils.IS_OS_MAC;
|
|
|
|
return SystemUtils.IS_OS_MAC;
|
|
|
|
}
|
|
|
|
}
|
|
|
|