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

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

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

revision 1.4 by mkoch, Mon Dec 23 12:45:46 2002 UTC revision 1.5 by mkoch, Mon Feb 17 08:05:50 2003 UTC
# Line 50  import java.util.TooManyListenersExcepti Line 50  import java.util.TooManyListenersExcepti
50  public class DropTarget  public class DropTarget
51    implements DropTargetListener, EventListener, Serializable    implements DropTargetListener, EventListener, Serializable
52  {  {
53      /**
54       * Compatible with JDK 1.2+
55       */
56      private static final long serialVersionUID = -6283860791671019047L;
57    
58    protected static class DropTargetAutoScroller    protected static class DropTargetAutoScroller
59      implements ActionListener      implements ActionListener
60    {    {
# Line 74  public class DropTarget Line 79  public class DropTarget
79    private boolean isActive = false;    private boolean isActive = false;
80            
81    /**    /**
82     * FIXME     * Creates a <code>DropTarget</code> object.
83     *     *
84     * @exception HeadlessException FIXME     * @exception HeadlessException If GraphicsEnvironment.isHeadless()
85       * returns true.
86     */     */
87    public DropTarget ()    public DropTarget ()
88    {    {
89        this (null, 0, null, true, null);
90    }    }
91        
92    /**    /**
93     * FIXME     * Creates a <code>DropTarget</code> object.
94     *     *
95     * @exception HeadlessException FIXME     * @exception HeadlessException If GraphicsEnvironment.isHeadless()
96       * returns true.
97     */     */
98    public DropTarget (Component c, DropTargetListener dtl)    public DropTarget (Component c, DropTargetListener dtl)
99    {    {
100        this (c, 0, dtl, true, null);
101    }    }
102        
103    /**    /**
104     * FIXME     * Creates a <code>DropTarget</code> object.
105     *     *
106     * @exception HeadlessException FIXME     * @exception HeadlessException If GraphicsEnvironment.isHeadless()
107       * returns true.
108     */     */
109    public DropTarget (Component c, int i, DropTargetListener dtl)    public DropTarget (Component c, int i, DropTargetListener dtl)
110    {    {
111        this (c, i, dtl, true, null);
112    }    }
113        
114    /**    /**
115     * FIXME     * Creates a <code>DropTarget</code> object.
116     *     *
117     * @exception HeadlessException FIXME     * @exception HeadlessException If GraphicsEnvironment.isHeadless()
118       * returns true.
119     */     */
120    public DropTarget (Component c, int i, DropTargetListener dtl, boolean b)    public DropTarget (Component c, int i, DropTargetListener dtl, boolean b)
121    {    {
122        this (c, i, dtl, b, null);
123    }    }
124        
125    /**    /**
126     * FIXME     * Creates a <code>DropTarget</code> object.
127     *     *
128     * @exception HeadlessException FIXME     * @exception HeadlessException If GraphicsEnvironment.isHeadless()
129       * returns true.
130     */     */
131    public DropTarget (Component c, int i, DropTargetListener dtl, boolean b,    public DropTarget (Component c, int i, DropTargetListener dtl, boolean b,
132                       FlavorMap fm)                       FlavorMap fm)
133    {    {
134    }    }
135    
136      /**
137       * Sets the component associated with this drop target object.
138       */
139    public void setComponent (Component c)    public void setComponent (Component c)
140    {    {
141    }    }
142    
143      /**
144       * Returns the component associated with this drop target object.
145       */
146    public Component getComponent ()    public Component getComponent ()
147    {    {
148      return null;      return null;
149    }    }
150    
151      /**
152       * Sets the default actions.
153       */
154    public void setDefaultActions (int ops)    public void setDefaultActions (int ops)
155    {    {
156    }    }
157    
158      /**
159       * Returns the default actions.
160       */
161    public int getDefaultActions ()    public int getDefaultActions ()
162    {    {
163      return 0;      return 0;
# Line 148  public class DropTarget Line 174  public class DropTarget
174    }    }
175    
176    /**    /**
177     * @exception TooManyListenersException FIXME     * Adds a new <code>DropTargetListener</code>.
178       *
179       * @exception TooManyListenersException If there is already a
180       * <code>DropTargetListener</code>.
181     */     */
182    public void addDropTargetListener (DropTargetListener dtl)    public void addDropTargetListener (DropTargetListener dtl)
183      throws TooManyListenersException      throws TooManyListenersException

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

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