Package org.jpass.utils
Class CopyToClipboard
java.lang.Object
org.jpass.utils.CopyToClipboard
Copy text to clipboard
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Copy text to clipboard (seconds are loaded from config)static void
Copy text to clipboardstatic void
removeClipboardAfter
(int seconds) Remove clipboard after x seconds - using thread
-
Constructor Details
-
CopyToClipboard
public CopyToClipboard()
-
-
Method Details
-
copy
Copy text to clipboard (seconds are loaded from config)- Parameters:
text
- text to copy
-
copy
Copy text to clipboard- Parameters:
text
- text to copyseconds
- time to remove clipboard
-
removeClipboardAfter
public static void removeClipboardAfter(int seconds) Remove clipboard after x seconds - using thread- Parameters:
seconds
- time to remove clipboard
-