feat(jdk8): move files to new folder to avoid resources compiled.
This commit is contained in:
71
jdkSrc/jdk8/java/awt/dnd/peer/DragSourceContextPeer.java
Normal file
71
jdkSrc/jdk8/java/awt/dnd/peer/DragSourceContextPeer.java
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2007, 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
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package java.awt.dnd.peer;
|
||||
|
||||
import java.awt.Cursor;
|
||||
import java.awt.Image;
|
||||
import java.awt.Point;
|
||||
import java.awt.dnd.DragSourceContext;
|
||||
import java.awt.dnd.InvalidDnDOperationException;
|
||||
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* This interface is supplied by the underlying window system platform to
|
||||
* expose the behaviors of the Drag and Drop system to an originator of
|
||||
* the same
|
||||
* </p>
|
||||
*
|
||||
* @since 1.2
|
||||
*
|
||||
*/
|
||||
|
||||
public interface DragSourceContextPeer {
|
||||
|
||||
/**
|
||||
* start a drag
|
||||
*/
|
||||
|
||||
void startDrag(DragSourceContext dsc, Cursor c, Image dragImage, Point imageOffset) throws InvalidDnDOperationException;
|
||||
|
||||
/**
|
||||
* return the current drag cursor
|
||||
*/
|
||||
|
||||
Cursor getCursor();
|
||||
|
||||
/**
|
||||
* set the current drag cursor
|
||||
*/
|
||||
|
||||
void setCursor(Cursor c) throws InvalidDnDOperationException;
|
||||
|
||||
/**
|
||||
* notify the peer that the Transferables DataFlavors have changed
|
||||
*/
|
||||
|
||||
void transferablesFlavorsChanged();
|
||||
}
|
||||
111
jdkSrc/jdk8/java/awt/dnd/peer/DropTargetContextPeer.java
Normal file
111
jdkSrc/jdk8/java/awt/dnd/peer/DropTargetContextPeer.java
Normal file
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2007, 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
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package java.awt.dnd.peer;
|
||||
|
||||
import java.awt.datatransfer.DataFlavor;
|
||||
import java.awt.datatransfer.Transferable;
|
||||
import java.awt.dnd.DropTarget;
|
||||
import java.awt.dnd.InvalidDnDOperationException;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* This interface is exposed by the underlying window system platform to
|
||||
* enable control of platform DnD operations
|
||||
* </p>
|
||||
*
|
||||
* @since 1.2
|
||||
*
|
||||
*/
|
||||
|
||||
public interface DropTargetContextPeer {
|
||||
|
||||
/**
|
||||
* update the peer's notion of the Target's actions
|
||||
*/
|
||||
|
||||
void setTargetActions(int actions);
|
||||
|
||||
/**
|
||||
* get the current Target actions
|
||||
*/
|
||||
|
||||
int getTargetActions();
|
||||
|
||||
/**
|
||||
* get the DropTarget associated with this peer
|
||||
*/
|
||||
|
||||
DropTarget getDropTarget();
|
||||
|
||||
/**
|
||||
* get the (remote) DataFlavors from the peer
|
||||
*/
|
||||
|
||||
DataFlavor[] getTransferDataFlavors();
|
||||
|
||||
/**
|
||||
* get an input stream to the remote data
|
||||
*/
|
||||
|
||||
Transferable getTransferable() throws InvalidDnDOperationException;
|
||||
|
||||
/**
|
||||
* @return if the DragSource Transferable is in the same JVM as the Target
|
||||
*/
|
||||
|
||||
boolean isTransferableJVMLocal();
|
||||
|
||||
/**
|
||||
* accept the Drag
|
||||
*/
|
||||
|
||||
void acceptDrag(int dragAction);
|
||||
|
||||
/**
|
||||
* reject the Drag
|
||||
*/
|
||||
|
||||
void rejectDrag();
|
||||
|
||||
/**
|
||||
* accept the Drop
|
||||
*/
|
||||
|
||||
void acceptDrop(int dropAction);
|
||||
|
||||
/**
|
||||
* reject the Drop
|
||||
*/
|
||||
|
||||
void rejectDrop();
|
||||
|
||||
/**
|
||||
* signal complete
|
||||
*/
|
||||
|
||||
void dropComplete(boolean success);
|
||||
|
||||
}
|
||||
59
jdkSrc/jdk8/java/awt/dnd/peer/DropTargetPeer.java
Normal file
59
jdkSrc/jdk8/java/awt/dnd/peer/DropTargetPeer.java
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 1999, 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
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package java.awt.dnd.peer;
|
||||
|
||||
import java.awt.dnd.DropTarget;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* The DropTargetPeer class is the interface to the platform dependent
|
||||
* DnD facilities. Since the DnD system is based on the native platform's
|
||||
* facilities, a DropTargetPeer will be associated with a ComponentPeer
|
||||
* of the nearsest enclosing native Container (in the case of lightweights)
|
||||
* </p>
|
||||
*
|
||||
* @since 1.2
|
||||
*
|
||||
*/
|
||||
|
||||
public interface DropTargetPeer {
|
||||
|
||||
/**
|
||||
* Add the DropTarget to the System
|
||||
*
|
||||
* @param dt The DropTarget effected
|
||||
*/
|
||||
|
||||
void addDropTarget(DropTarget dt);
|
||||
|
||||
/**
|
||||
* Remove the DropTarget from the system
|
||||
*
|
||||
* @param dt The DropTarget effected
|
||||
*/
|
||||
|
||||
void removeDropTarget(DropTarget dt);
|
||||
}
|
||||
Reference in New Issue
Block a user