1 9 10 package org.netbeans.modules.web.jsf.navigation.graph.actions; 11 12 import java.awt.Point ; 13 import java.awt.datatransfer.DataFlavor ; 14 import java.awt.datatransfer.Transferable ; 15 import org.netbeans.api.visual.action.AcceptProvider; 16 import org.netbeans.api.visual.action.ConnectorState; 17 import org.netbeans.api.visual.widget.Widget; 18 19 23 public class PageFlowAcceptProvider implements AcceptProvider { 24 25 26 public PageFlowAcceptProvider() { 27 } 28 29 public ConnectorState isAcceptable(Widget widget, Point point, Transferable transferable) { 30 31 System.out.print("\nPageFlowAcceptProvider: IS ACCEPTABLE HAS BEEN CALLED."); 32 System.out.println("Widget: " + widget); 33 System.out.println("Point: " + point); 34 System.out.println("Transferable: " + transferable); 35 DataFlavor [] dfs = transferable.getTransferDataFlavors(); 36 for( DataFlavor flavor: dfs){ 37 System.out.println("Data Flavor: " + flavor); 38 } 39 return ConnectorState.REJECT_AND_STOP; 40 } 41 42 public void accept(Widget widget, Point point, Transferable transferable) { 43 } 44 45 } 46 | Popular Tags |