| Modifier and Type | Field and Description |
|---|---|
| private volatile long[] | currentFormats
A set of |
| private static Set | |
| private volatile int | numberOfFlavorListeners
A number of |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | addFlavorListener(FlavorListener listener)
Overrides java. Registers the specified |
| public boolean | |
| protected final void | checkChange(final long[]
data formats that have just been retrieved from
this clipboard formats)Checks change of the |
| protected abstract void | |
| public void | |
| protected Transferable | |
| private static Set | |
| public DataFlavor[] | getAvailableDataFlavors()
Overrides java. Returns an array of |
| protected abstract byte[] | |
| protected abstract long[] | getClipboardFormats()
Returns zero-length array (not null) if the number of available formats is zero. |
| protected long[] | |
| public synchronized Transferable | getContents(Object requestor)
Overrides java. Returns a transferable object representing the current contents of the clipboard. |
| protected synchronized Transferable | |
| public Object | getData(DataFlavor flavor)
Overrides java. Returns an object representing the current contents of this clipboard in
the specified |
| public static FlavorTable | |
| public synchronized FlavorListener[] | getFlavorListeners()
Overrides java. Returns an array of all the |
| public abstract long | |
| public boolean | isDataFlavorAvailable(DataFlavor flavor)
Overrides java. Returns whether or not the current contents of this clipboard can be
provided in the specified |
| protected void | |
| protected void | lostOwnershipLater()
Clears the clipboard state (contents, owner and contents context) and notifies the current owner that ownership is lost. |
| protected void | |
| public void | |
| protected abstract void | |
| public synchronized void | removeFlavorListener(FlavorListener listener)
Overrides java. Removes the specified |
| public synchronized void | setContents(Transferable contents, ClipboardOwner owner)
Overrides java. 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. |
| protected abstract void | |
| protected abstract void |
| currentFormats | back to summary |
|---|---|
| private volatile long[] currentFormats A set of | |
| flavorListeners | back to summary |
|---|---|
| private static Set<FlavorListener> flavorListeners | |
| numberOfFlavorListeners | back to summary |
|---|---|
| private volatile int numberOfFlavorListeners A number of | |
| SunClipboard | back to summary |
|---|---|
| public SunClipboard(String name) | |
| addFlavorListener | back to summary |
|---|---|
| public synchronized void addFlavorListener(FlavorListener listener) Overrides java. Doc from java. Registers the specified | |
| areFlavorListenersRegistered | back to summary |
|---|---|
| public boolean areFlavorListenersRegistered() | |
| checkChange | back to summary |
|---|---|
| protected final void checkChange(final long[] formats) Checks change of the
| |
| clearNativeContext | back to summary |
|---|---|
| protected abstract void clearNativeContext() | |
| closeClipboard | back to summary |
|---|---|
| public void closeClipboard() | |
| createLocaleTransferable | back to summary |
|---|---|
| protected Transferable createLocaleTransferable(long[] formats) throws IOException The clipboard must be opened.
| |
| formatArrayAsDataFlavorSet | back to summary |
|---|---|
| private static Set | |
| getAvailableDataFlavors | back to summary |
|---|---|
| public DataFlavor[] getAvailableDataFlavors() Overrides java. Doc from java. Returns an array of
| |
| getClipboardData | back to summary |
|---|---|
| protected abstract byte[] getClipboardData(long format) throws IOException | |
| getClipboardFormats | back to summary |
|---|---|
| protected abstract long[] getClipboardFormats() Returns zero-length array (not null) if the number of available formats is zero.
| |
| getClipboardFormatsOpenClose | back to summary |
|---|---|
protected long[] getClipboardFormatsOpenClose()
| |
| getContents | back to summary |
|---|---|
| public synchronized Transferable getContents(Object requestor) Overrides java. Doc from java. Returns a transferable object representing the current contents of the
clipboard. If the clipboard currently has no contents, it returns
| |
| getContextContents | back to summary |
|---|---|
protected synchronized Transferable getContextContents()
| |
| getData | back to summary |
|---|---|
| public Object getData(DataFlavor flavor) throws UnsupportedFlavorException, IOException Overrides java. Doc from java. Returns an object representing the current contents of this clipboard in
the specified
| |
| getDefaultFlavorTable | back to summary |
|---|---|
| public static FlavorTable getDefaultFlavorTable() | |
| getFlavorListeners | back to summary |
|---|---|
| public synchronized FlavorListener[] getFlavorListeners() Overrides java. Doc from java. Returns an array of all the | |
| getID | back to summary |
|---|---|
| public abstract long getID() | |
| isDataFlavorAvailable | back to summary |
|---|---|
| public boolean isDataFlavorAvailable(DataFlavor flavor) Overrides java. Doc from java. Returns whether or not the current contents of this clipboard can be
provided in the specified
| |
| lostOwnershipImpl | back to summary |
|---|---|
| protected void lostOwnershipImpl() | |
| lostOwnershipLater | back to summary |
|---|---|
| protected void lostOwnershipLater() Clears the clipboard state (contents, owner and contents context) and
notifies the current owner that ownership is lost. Does nothing if the
argument is not | |
| lostOwnershipNow | back to summary |
|---|---|
| protected void lostOwnershipNow() | |
| openClipboard | back to summary |
|---|---|
public void openClipboard(SunClipboard newOwner)
| |
| registerClipboardViewerChecked | back to summary |
|---|---|
| protected abstract void registerClipboardViewerChecked() | |
| removeFlavorListener | back to summary |
|---|---|
| public synchronized void removeFlavorListener(FlavorListener listener) Overrides java. Doc from java. Removes the specified | |
| setContents | back to summary |
|---|---|
| public synchronized void setContents(Transferable contents, ClipboardOwner owner) Overrides java. Doc from java. 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
The method throws | |
| setContentsNative | back to summary |
|---|---|
| protected abstract void setContentsNative(Transferable contents) | |
| unregisterClipboardViewerChecked | back to summary |
|---|---|
| protected abstract void unregisterClipboardViewerChecked() | |