1 16 17 package swingwt.awt.dnd; 18 19 import swingwt.awt.GraphicsEnvironment; 20 import swingwt.awt.HeadlessException; 21 import swingwt.awt.dnd.DragGestureListener; 22 import swingwt.awt.Component; 23 24 25 26 public class DragSource { 27 public DragSource() { 28 } 29 30 private static final DragSource defaultDragSource = 31 (GraphicsEnvironment.isHeadless()) ? null : new DragSource(); 32 33 public static DragSource getDefaultDragSource() { 34 if (GraphicsEnvironment.isHeadless()) { 35 throw new HeadlessException(""); 36 } else { 37 return defaultDragSource; 38 } 39 } 40 41 public DragGestureRecognizer createDefaultDragGestureRecognizer( 42 Component c, 43 int actions, 44 DragGestureListener dgl) 45 { 46 return null; 47 } 48 } 49 | Popular Tags |