/[classpath]/classpath/java/awt/dnd/DropTargetContext.java
ViewVC logotype

Diff of /classpath/java/awt/dnd/DropTargetContext.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by mkoch, Mon Feb 17 08:05:50 2003 UTC revision 1.4 by mkoch, Sun Mar 2 14:42:13 2003 UTC
# Line 67  public class DropTargetContext implement Line 67  public class DropTargetContext implement
67            
68      public DataFlavor[] getTransferDataFlavors ()      public DataFlavor[] getTransferDataFlavors ()
69      {      {
70        // FIXME: implement this        return transferable.getTransferDataFlavors ();
       return null;  
71      }      }
72    
73      public boolean isDataFlavorSupported (DataFlavor flavor)      public boolean isDataFlavorSupported (DataFlavor flavor)
74      {      {
75        // FIXME: implement this        return transferable.isDataFlavorSupported (flavor);
       return false;  
76      }      }
77    
78      public Object getTransferData (DataFlavor flavor)      public Object getTransferData (DataFlavor flavor)
79        throws UnsupportedFlavorException, IOException        throws UnsupportedFlavorException, IOException
80      {      {
81        // FIXME: implement this        return transferable.getTransferData (flavor);
       return null;  
82      }      }
83    }    }
84    
85      private DropTarget dropTarget;
86    private int targetActions;    private int targetActions;
87      private java.awt.dnd.peer.DropTargetContextPeer dtcp;
88    
89      // package private
90      DropTargetContext (DropTarget dropTarget)
91      {
92        this.dropTarget = dropTarget;
93      }
94    
95    public DropTarget getDropTarget ()    public DropTarget getDropTarget ()
96    {    {
97      // FIXME: implement this      return dropTarget;
     return null;  
98    }    }
99    
100    public Component getComponent ()    public Component getComponent ()
101    {    {
102      // FIXME: implement this      return dropTarget.getComponent ();
     return null;  
103    }    }
104    
105    public void addNotify (java.awt.dnd.peer.DropTargetContextPeer dtcp)    public void addNotify (java.awt.dnd.peer.DropTargetContextPeer dtcp)
106    {    {
107      // FIXME: implement this      this.dtcp = dtcp;
108    }    }
109    
110    public void removeNotify ()    public void removeNotify ()
111    {    {
112      // FIXME: implement this      this.dtcp = null;
113    }    }
114    
115    protected void setTargetActions (int actions)    protected void setTargetActions (int actions)
# Line 157  public class DropTargetContext implement Line 160  public class DropTargetContext implement
160    
161    protected List getCurrentDataFlavorsAsList ()    protected List getCurrentDataFlavorsAsList ()
162    {    {
163      // FIXME: implement this      return Arrays.asList (getCurrentDataFlavors ());
     return null;  
164    }    }
165    
166    protected boolean isDataFlavorSupported (DataFlavor flavor)    protected boolean isDataFlavorSupported (DataFlavor flavor)
167    {    {
168      // FIXME: implement this      return getCurrentDataFlavorsAsList ().contains (flavor);
     return false;  
169    }    }
170    
171    /**    /**

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26