Geen cache-versie.

Caching uitgeschakeld. Standaardinstelling voor deze pagina:ingeschakeld (code LNG204)
Als het scherm te langzaam is, kunt u de gebruikersmodus uitschakelen om de cacheversie te bekijken.
java.awt.datatransfer

Class Clipboard

    • Method Detail

      • setContents

        public void setContents(Transferable contents,
                       ClipboardOwner owner)
        Sets the current contents of the clipboard to the specified transferable object and registers the specified clipboard owner as the owner of the new contents.

        If there is an existing owner different from the argument owner, that owner is notified that it no longer holds ownership of the clipboard contents via an invocation of ClipboardOwner.lostOwnership() on that owner. An implementation of setContents() is free not to invoke lostOwnership() directly from this method. For example, lostOwnership() may be invoked later on a different thread. The same applies to FlavorListeners registered on this clipboard.

        The method throws IllegalStateException if the clipboard is currently unavailable. For example, on some platforms, the system clipboard is unavailable while it is accessed by another application.

        Parameters:
        contents - the transferable object representing the clipboard content
        owner - the object which owns the clipboard content
        Throws:
        IllegalStateException - if the clipboard is currently unavailable
        See Also:
        Toolkit.getSystemClipboard()
      • getContents

        public Transferable getContents(Object requestor)
        Returns a transferable object representing the current contents of the clipboard. If the clipboard currently has no contents, it returns null. The parameter Object requestor is not currently used. The method throws IllegalStateException if the clipboard is currently unavailable. For example, on some platforms, the system clipboard is unavailable while it is accessed by another application.
        Parameters:
        requestor - the object requesting the clip data (not used)
        Returns:
        the current transferable object on the clipboard
        Throws:
        IllegalStateException - if the clipboard is currently unavailable
        See Also:
        Toolkit.getSystemClipboard()
      • getAvailableDataFlavors

        public DataFlavor[] getAvailableDataFlavors()
        Returns an array of DataFlavors in which the current contents of this clipboard can be provided. If there are no DataFlavors available, this method returns a zero-length array.
        Returns:
        an array of DataFlavors in which the current contents of this clipboard can be provided
        Throws:
        IllegalStateException - if this clipboard is currently unavailable
        Since:
        1.5
      • isDataFlavorAvailable

        public boolean isDataFlavorAvailable(DataFlavor flavor)
        Returns whether or not the current contents of this clipboard can be provided in the specified DataFlavor.
        Parameters:
        flavor - the requested DataFlavor for the contents
        Returns:
        true if the current contents of this clipboard can be provided in the specified DataFlavor; false otherwise
        Throws:
        NullPointerException - if flavor is null
        IllegalStateException - if this clipboard is currently unavailable
        Since:
        1.5
      • removeFlavorListener

        public void removeFlavorListener(FlavorListener listener)
        Removes the specified FlavorListener so that it no longer receives FlavorEvents from this Clipboard. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added to this Clipboard. If listener is null, no exception is thrown and no action is performed.
        Parameters:
        listener - the listener to be removed
        Since:
        1.5
        See Also:
        addFlavorListener(java.awt.datatransfer.FlavorListener), getFlavorListeners(), FlavorListener, FlavorEvent

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-java/awt/datatransfer/clipboard.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.

Inhoudsopgave Haut