XClipboard.java revision 0
/*
* Copyright 2003-2007 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Sun designates this
* particular file as subject to the "Classpath" exception as provided
* by Sun in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
/**
* A class which interfaces with the X11 selection service in order to support
* data transfer via Clipboard operations.
*/
private final XSelection selection;
private static final int defaultPollInterval = 200;
private static int pollInterval;
private static Set listenedClipboards;
/**
* Creates a system clipboard object.
*/
super(name);
}
/**
* The action to be run when we lose ownership
* NOTE: This method may be called by privileged threads.
* DO NOT INVOKE CLIENT CODE ON THIS THREAD!
*/
public void run() {
}
long[] formats =
XToolkit.getCurrentServerTime())) {
}
}
public long getID() {
}
return contents;
}
return new ClipboardTransferable(this);
}
/* Caller is synchronized on this. */
protected void clearNativeContext() {
}
protected long[] getClipboardFormats() {
}
}
// Called on the toolkit thread under awtLock.
public void checkChange(long[] formats) {
super.checkChange(formats);
}
}
if (areFlavorListenersRegistered()) {
}
}
protected void registerClipboardViewerChecked() {
if (pollInterval <= 0) {
new GetIntegerAction("awt.datatransfer.clipboard.poll.interval",
defaultPollInterval))).intValue();
if (pollInterval <= 0) {
}
}
boolean mustSchedule = false;
synchronized (XClipboard.classLock) {
if (listenedClipboards == null) {
}
listenedClipboards.add(this);
}
if (mustSchedule) {
}
}
private static class CheckChangeTimerTask implements Runnable {
public void run() {
}
synchronized (XClipboard.classLock) {
}
}
}
}
protected void unregisterClipboardViewerChecked() {
synchronized (XClipboard.classLock) {
listenedClipboards.remove(this);
}
}
}