[Schmitzm-commits] r2155 - trunk/schmitzm-core/src/main/java/de/schmitzm/swing/dnd
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Sat Dec 8 22:43:32 CET 2012
Author: mojays
Date: 2012-12-08 22:43:32 +0100 (Sat, 08 Dec 2012)
New Revision: 2155
Modified:
trunk/schmitzm-core/src/main/java/de/schmitzm/swing/dnd/ListingTransferHandler.java
Log:
Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/swing/dnd/ListingTransferHandler.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/swing/dnd/ListingTransferHandler.java 2012-12-08 21:30:21 UTC (rev 2154)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/swing/dnd/ListingTransferHandler.java 2012-12-08 21:43:32 UTC (rev 2155)
@@ -160,9 +160,9 @@
Component dropComp = info.getComponent();
logCompIndex("canImport", dropComp);
// Check if drop is allowed to destination component
- boolean dndAllowed = ( isInnerListDragAllowed() || dropComp != getDragSource() ) &&
+ boolean dndAllowed = ( isInnerListDragAllowed() || dropComp != getDragSourceComponent() ) &&
dndListComp.contains(dropComp) &&
- checkDragDropAllowed(getDragSource(), (LIST_IMPL)dropComp) &&
+ checkDragDropAllowed(getDragSourceComponent(), (LIST_IMPL)dropComp) &&
info.isDrop() &&
info.isDataFlavorSupported(localObjectFlavor);
if ( dndAllowed ) {
@@ -203,7 +203,7 @@
@Override
public boolean importData(TransferHandler.TransferSupport info) {
LIST_IMPL target = (LIST_IMPL)info.getComponent();
- LIST_IMPL source = getDragSource();
+ LIST_IMPL source = getDragSourceComponent();
logCompIndex("importData from", source);
logCompIndex("importData to", target);
@@ -248,7 +248,7 @@
* Returns the source list component, the drag is performed on.
* @return {@code null} if no drag and drop action is in progress
*/
- public LIST_IMPL getDragSource() {
+ public LIST_IMPL getDragSourceComponent() {
return this.dragSourceComp;
}
@@ -256,7 +256,7 @@
* Returns the target list component, the drop is performed on.
* @return {@code null} if no drag and drop action is in progress
*/
- public LIST_IMPL getDropTarget() {
+ public LIST_IMPL getDropTargetComponent() {
return this.dropTargetComp;
}
More information about the Schmitzm-commits
mailing list