java.lang.Object
one.jpro.platform.utils.CopyUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidsetCopyOnClick(javafx.scene.Node node, String text) Sets up the given node so that clicking it copies the provided text.
-
Constructor Details
-
CopyUtil
public CopyUtil()
-
-
Method Details
-
setCopyOnClick
Sets up the given node so that clicking it copies the provided text. Only one copy handler instance (desktop or JPro) is created per Node.- Parameters:
node- the JavaFX node to set the copy behavior ontext- the text to copy to the clipboard when the node is clicked
-