Documentation of 'org.jhotdraw.gui.datatransfer.JNLPClipboard' Java class
JNLPClipboard
org.jhotdraw.gui.datatransfer

Class JNLPClipboard



  • public class JNLPClipboard
    extends AbstractClipboard
    JNLPClipboard acts as a proxy to a JNLP ClipboardService object.

    Uses Reflection to access the JNLP object, because JNLP is not available in J2SE 5.


    Design Patterns

    Proxy
    JNLPClipboard acts as a proxy to a JNLP ClipboardService object.
    Proxy: JNLPClipboard; Target: javax.jnlp.ClipboardService.

    • Constructor Summary

      Constructors 
      Constructor and Description
      JNLPClipboard(java.lang.Object target)
      Creates a new proxy for the specified target object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.awt.datatransfer.Transferable getContents(java.lang.Object requestor)
      Returns a Transferable object representing the current contents of the clipboard.
      java.lang.Object getTarget()
      Returns the proxy target.
      void setContents(java.awt.datatransfer.Transferable contents, java.awt.datatransfer.ClipboardOwner owner)
      Sets the current contents of the clipboard to the specified Transferable object.
      • Methods inherited from class java.awt.datatransfer.Clipboard

        addFlavorListener, getAvailableDataFlavors, getData, getFlavorListeners, getName, isDataFlavorAvailable, removeFlavorListener
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JNLPClipboard

        public JNLPClipboard(java.lang.Object target)
        Creates a new proxy for the specified target object. The target object must have a getContent and a setContent method as specified by the javax.jnlp.ClipboardService interface.
        Parameters:
        target - A Clipboard object.
    • Method Detail

      • getTarget

        public java.lang.Object getTarget()
        Returns the proxy target.
      • getContents

        public java.awt.datatransfer.Transferable getContents(java.lang.Object requestor)
        Description copied from class: AbstractClipboard
        Returns a Transferable object representing the current contents of the clipboard. If the clipboard currently has no contents, it returns null.
        Specified by:
        getContents in class AbstractClipboard
        Returns:
        The current Transferable object on the clipboard.
      • setContents

        public void setContents(java.awt.datatransfer.Transferable contents,
                                java.awt.datatransfer.ClipboardOwner owner)
        Description copied from class: AbstractClipboard
        Sets the current contents of the clipboard to the specified Transferable object.
        Specified by:
        setContents in class AbstractClipboard
        Parameters:
        contents - The Transferable object representing clipboard content.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.