Add javadocs

pull/2/head
Hammy 3 years ago
parent 40f4cdbb8d
commit a8cd3a7a57

@ -26,7 +26,7 @@ enum Contents {
private final DataFlavor dataFlavor;
Contents(DataFlavor dataFlavor) {
this.dataFlavor = dataFlavor;
this.dataFlavor = dataFlavor;
}
DataFlavor getDataFlavor() {

@ -75,7 +75,7 @@ class EventManager {
* Produces {@link String} change notifications to all consumers listening
*
* @param clipboardContent The previous clipboard contents
* @param stringContent {@link String} to be consumed
* @param stringContent {@link String} to be consumed
*/
void notifyTextEvent(ClipboardContent clipboardContent, String stringContent) {
for (TextEvent textEvent : textEventListener) {
@ -87,7 +87,7 @@ class EventManager {
* Produces {@link BufferedImage} change notifications to all consumers listening
*
* @param clipboardContent The previous clipboard contents
* @param imageContent {@link BufferedImage} to be consumed
* @param imageContent {@link BufferedImage} to be consumed
*/
void notifyImageEvent(ClipboardContent clipboardContent, BufferedImage imageContent) {
for (ImageEvent imageEvent : imageEventListener) {
@ -99,7 +99,7 @@ class EventManager {
* Produces {@link List} of {@link File} change notifications to all consumers listening
*
* @param clipboardContent The previous clipboard contents
* @param fileContent {@link List} of {@link File} to be consumed
* @param fileContent {@link List} of {@link File} to be consumed
*/
void notifyFilesEvent(ClipboardContent clipboardContent, List<File> fileContent) {
for (FileEvent fileEvent : fileEventListener) {

@ -44,6 +44,8 @@ class WindowsOrUnixClipboardListener extends ClipboardListener implements Runnab
}
/**
* Detect changes from the given {@link Clipboard} and send event notifications to all users listening
*
* @param oldClipboard The clipboard that is no longer owned
* @param oldClipboardContents The old contents of the clipboard
* @param newClipboardContents The new contents of the clipboard

Loading…
Cancel
Save