1 package org.apache.ojb.tools.mapping.reversedb2.dnd2; 2 3 17 18 import java.awt.Component ; 19 import java.awt.datatransfer.DataFlavor ; 20 import java.awt.datatransfer.Transferable ; 21 22 26 class RejectAllDropWorker implements DropPasteWorkerInterface 27 { 28 29 30 public RejectAllDropWorker () 31 { 32 } 33 34 public int getAcceptableActions (Component c) 35 { 36 return DnDWorkerConstants.NONE; 37 } 38 39 public int getAcceptableActions (Component c, DataFlavor [] flavor) 40 { 41 return DnDWorkerConstants.NONE; 42 } 43 44 public DataFlavor getSupportedDataFlavor () 45 { 46 return null; 47 } 48 49 public boolean importData (Component c, Transferable t, int action) 50 { 51 return false; 52 } 53 54 } 55 | Popular Tags |