Class CopyUtil

java.lang.Object
one.jpro.platform.utils.CopyUtil

public class CopyUtil extends Object
  • Constructor Details

    • CopyUtil

      public CopyUtil()
  • Method Details

    • setCopyOnClick

      public static void setCopyOnClick(javafx.scene.Node node, String text)
      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 on
      text - the text to copy to the clipboard when the node is clicked