Ad
Ad
Ad
Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    165
    Shares

Abstract Interface ClipboardOwner in Java

ClipboardOwner interface defines the single method that an object that places data on a Clipboard must implement. This method is used to notify the object when its data on the clipboard is replaced by other, more recent, data. An object that places data on a clipboard must remain ready to satisfy requests for that data until lostOwnership() is called.

In short, ClipboardOwner is implemented by classes that want to be notified when someone else sets the contents of a clipboard.

The interface structure of ClipboardOwner in Java is given as

public abstract interface ClipboardOwner {
// Public Instance Methods
public abstract void lostOwnership(Clipboard clipboard, Transferable contents);
}

The details of the class structure are given as follows:

public abstract void lostOwnership(Clipboard clipboard, Transferable contents);

public abstract void lostOwnership(Clipboard clipboard, Transferable contents) method instructs the ClipboardOwner that the contents it placed on the given clipboard are no longer there.

Parameter
clipboard – The clipboard whose contents have changed.
contents – The contents that this owner originally put on the clipboard.

Don't miss out!
Subscribe To Newsletter

Receive top technical news, lesson ideas, travel tips and more!

Invalid email address
Give it a try. You can unsubscribe at any time.

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    165
    Shares

I am the founder and owner of the blog - TechTravelHub.com, always love to share knowledge on test automation,tools,techniques and tips.I am a passionate coder of Java and VBScript.I also publish articles on Travel ideas and great honeymoon destinations.Apart from these, I am a gear-head,love to drive across India. I have shared lots of articles here on How to travel several parts of India.Customization of cars aka car modification is my another hobby.Get in touch with me on [email protected]

Write A Comment