< prev index next >

modules/graphics/src/main/java/javafx/scene/input/Clipboard.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 23,32 **** --- 23,33 ---- * questions. */ package javafx.scene.input; + import com.sun.javafx.scene.input.ClipboardHelper; import java.io.File; import java.security.AccessControlContext; import java.security.AccessController; import java.security.Permission; import java.util.List;
*** 118,127 **** --- 119,140 ---- * exchange data between multiple applications. * @since JavaFX 2.0 */ public class Clipboard { + static { + // This is used by classes in different packages to get access to + // private and package private methods. + ClipboardHelper.setClipboardAccessor(new ClipboardHelper.ClipboardAccessor() { + + @Override + public boolean contentPut(Clipboard clipboard) { + return clipboard.contentPut(); + } + }); + } + /** * Whether user has put something on this clipboard. Needed for DnD. */ private boolean contentPut = false;
*** 394,409 **** */ public final List<File> getFiles() { return (List<File>) getContent(DataFormat.FILES); } ! /** ! * @treatAsPrivate implementation detail ! * @deprecated This is an internal API that is not intended for use and will be removed in the next version ! */ ! @Deprecated ! public boolean impl_contentPut() { return contentPut; } private static Clipboard systemClipboard; --- 407,417 ---- */ public final List<File> getFiles() { return (List<File>) getContent(DataFormat.FILES); } ! private boolean contentPut() { return contentPut; } private static Clipboard systemClipboard;
< prev index next >