/[classpath]/classpath/java/awt/Component.java
ViewVC logotype

Diff of /classpath/java/awt/Component.java

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

revision 1.36 by mark, Sat Jul 31 16:39:15 2004 UTC revision 1.37 by mark, Sat Jul 31 17:40:15 2004 UTC
# Line 2262  public abstract class Component Line 2262  public abstract class Component
2262     * This method simply calls handleEvent and returns the result.     * This method simply calls handleEvent and returns the result.
2263     *     *
2264     * @param e the event to handle     * @param e the event to handle
2265     * @return the result of handling <code>e</code>     * @return true if the event was handled, false otherwise
2266     * @deprecated use {@link #dispatchEvent(AWTEvent)} instead     * @deprecated use {@link #dispatchEvent(AWTEvent)} instead
2267     */     */
2268    public boolean postEvent(Event e)    public boolean postEvent(Event e)
# Line 3205  public abstract class Component Line 3205  public abstract class Component
3205    }    }
3206    
3207    /**    /**
3208     * AWT 1.0 mouse event handler.     * AWT 1.0 MOUSE_DOWN event handler.  This method is meant to be
3209       * overridden by components providing their own MOUSE_DOWN handler.
3210       * The default implementation simply returns false.
3211     *     *
3212     * @param evt the event to handle     * @param evt the event to handle
3213     * @param x the x coordinate, ignored     * @param x the x coordinate, ignored
3214     * @param y the y coordinate, ignored     * @param y the y coordinate, ignored
3215     * @return false: since the method was deprecated, the return has no meaning     * @return false
3216     * @deprecated use {@link #processMouseEvent(MouseEvent)} instead     * @deprecated use {@link #processMouseEvent(MouseEvent)} instead
3217     */     */
3218    public boolean mouseDown(Event evt, int x, int y)    public boolean mouseDown(Event evt, int x, int y)
3219    {    {
     // XXX Add backward compatibility handling.  
3220      return false;      return false;
3221    }    }
3222    
3223    /**    /**
3224     * AWT 1.0 mouse event.     * AWT 1.0 MOUSE_DRAG event handler.  This method is meant to be
3225       * overridden by components providing their own MOUSE_DRAG handler.
3226       * The default implementation simply returns false.
3227     *     *
3228     * @param evt the event to handle     * @param evt the event to handle
3229     * @param x the x coordinate, ignored     * @param x the x coordinate, ignored
3230     * @param y the y coordinate, ignored     * @param y the y coordinate, ignored
3231     * @return false: since the method was deprecated, the return has no meaning     * @return false
3232     * @deprecated use {@link #processMouseMotionEvent(MouseEvent)} instead     * @deprecated use {@link #processMouseMotionEvent(MouseEvent)} instead
3233     */     */
3234    public boolean mouseDrag(Event evt, int x, int y)    public boolean mouseDrag(Event evt, int x, int y)
3235    {    {
     // XXX Add backward compatibility handling.  
3236      return false;      return false;
3237    }    }
3238    
3239    /**    /**
3240     * AWT 1.0 mouse event.     * AWT 1.0 MOUSE_UP event handler.  This method is meant to be
3241       * overridden by components providing their own MOUSE_UP handler.
3242       * The default implementation simply returns false.
3243     *     *
3244     * @param evt the event to handle     * @param evt the event to handle
3245     * @param x the x coordinate, ignored     * @param x the x coordinate, ignored
3246     * @param y the y coordinate, ignored     * @param y the y coordinate, ignored
3247     * @return false: since the method was deprecated, the return has no meaning     * @return false
3248     * @deprecated use {@link #processMouseEvent(MouseEvent)} instead     * @deprecated use {@link #processMouseEvent(MouseEvent)} instead
3249     */     */
3250    public boolean mouseUp(Event evt, int x, int y)    public boolean mouseUp(Event evt, int x, int y)
3251    {    {
     // XXX Add backward compatibility handling.  
3252      return false;      return false;
3253    }    }
3254    
3255    /**    /**
3256     * AWT 1.0 mouse event.     * AWT 1.0 MOUSE_MOVE event handler.  This method is meant to be
3257       * overridden by components providing their own MOUSE_MOVE handler.
3258       * The default implementation simply returns false.
3259     *     *
3260     * @param evt the event to handle     * @param evt the event to handle
3261     * @param x the x coordinate, ignored     * @param x the x coordinate, ignored
3262     * @param y the y coordinate, ignored     * @param y the y coordinate, ignored
3263     * @return false: since the method was deprecated, the return has no meaning     * @return false
3264     * @deprecated use {@link #processMouseMotionEvent(MouseEvent)} instead     * @deprecated use {@link #processMouseMotionEvent(MouseEvent)} instead
3265     */     */
3266    public boolean mouseMove(Event evt, int x, int y)    public boolean mouseMove(Event evt, int x, int y)
3267    {    {
     // XXX Add backward compatibility handling.  
3268      return false;      return false;
3269    }    }
3270    
3271    /**    /**
3272     * AWT 1.0 mouse event.     * AWT 1.0 MOUSE_ENTER event handler.  This method is meant to be
3273       * overridden by components providing their own MOUSE_ENTER handler.
3274       * The default implementation simply returns false.
3275     *     *
3276     * @param evt the event to handle     * @param evt the event to handle
3277     * @param x the x coordinate, ignored     * @param x the x coordinate, ignored
3278     * @param y the y coordinate, ignored     * @param y the y coordinate, ignored
3279     * @return false: since the method was deprecated, the return has no meaning     * @return false
3280     * @deprecated use {@link #processMouseEvent(MouseEvent)} instead     * @deprecated use {@link #processMouseEvent(MouseEvent)} instead
3281     */     */
3282    public boolean mouseEnter(Event evt, int x, int y)    public boolean mouseEnter(Event evt, int x, int y)
3283    {    {
     // XXX Add backward compatibility handling.  
3284      return false;      return false;
3285    }    }
3286    
3287    /**    /**
3288     * AWT 1.0 mouse event.     * AWT 1.0 MOUSE_EXIT event handler.  This method is meant to be
3289       * overridden by components providing their own MOUSE_EXIT handler.
3290       * The default implementation simply returns false.
3291     *     *
3292     * @param evt the event to handle     * @param evt the event to handle
3293     * @param x the x coordinate, ignored     * @param x the x coordinate, ignored
3294     * @param y the y coordinate, ignored     * @param y the y coordinate, ignored
3295     * @return false: since the method was deprecated, the return has no meaning     * @return false
3296     * @deprecated use {@link #processMouseEvent(MouseEvent)} instead     * @deprecated use {@link #processMouseEvent(MouseEvent)} instead
3297     */     */
3298    public boolean mouseExit(Event evt, int x, int y)    public boolean mouseExit(Event evt, int x, int y)
3299    {    {
     // XXX Add backward compatibility handling.  
3300      return false;      return false;
3301    }    }
3302    
3303    /**    /**
3304     * AWT 1.0 key press event.     * AWT 1.0 KEY_PRESS and KEY_ACTION event handler.  This method is
3305       * meant to be overridden by components providing their own key
3306       * press handler.  The default implementation simply returns false.
3307     *     *
3308     * @param evt the event to handle     * @param evt the event to handle
3309     * @param key the key pressed, ignored     * @param key the key pressed, ignored
3310     * @return false: since the method was deprecated, the return has no meaning     * @return false
3311     * @deprecated use {@link #processKeyEvent(KeyEvent)} instead     * @deprecated use {@link #processKeyEvent(KeyEvent)} instead
3312     */     */
3313    public boolean keyDown(Event evt, int key)    public boolean keyDown(Event evt, int key)
3314    {    {
     // XXX Add backward compatibility handling.  
3315      return false;      return false;
3316    }    }
3317    
3318    /**    /**
3319     * AWT 1.0 key press event.     * AWT 1.0 KEY_RELEASE and KEY_ACTION_RELEASE event handler.  This
3320       * method is meant to be overridden by components providing their
3321       * own key release handler.  The default implementation simply
3322       * returns false.
3323     *     *
3324     * @param evt the event to handle     * @param evt the event to handle
3325     * @param key the key pressed, ignored     * @param key the key pressed, ignored
3326     * @return false: since the method was deprecated, the return has no meaning     * @return false
3327     * @deprecated use {@link #processKeyEvent(KeyEvent)} instead     * @deprecated use {@link #processKeyEvent(KeyEvent)} instead
3328     */     */
3329    public boolean keyUp(Event evt, int key)    public boolean keyUp(Event evt, int key)
3330    {    {
     // XXX Add backward compatibility handling.  
3331      return false;      return false;
3332    }    }
3333    
3334    /**    /**
3335     * AWT 1.0 action event processor.     * AWT 1.0 ACTION_EVENT event handler.  This method is meant to be
3336       * overridden by components providing their own action event
3337       * handler.  The default implementation simply returns false.
3338     *     *
3339     * @param evt the event to handle     * @param evt the event to handle
3340     * @param what the object acted on, ignored     * @param what the object acted on, ignored
3341     * @return false: since the method was deprecated, the return has no meaning     * @return false
3342     * @deprecated in classes which support actions, use     * @deprecated in classes which support actions, use
3343     *             <code>processActionEvent(ActionEvent)</code> instead     *             <code>processActionEvent(ActionEvent)</code> instead
3344     */     */
3345    public boolean action(Event evt, Object what)    public boolean action(Event evt, Object what)
3346    {    {
     // XXX Add backward compatibility handling.  
3347      return false;      return false;
3348    }    }
3349    
# Line 3377  public abstract class Component Line 3387  public abstract class Component
3387    }    }
3388    
3389    /**    /**
3390     * AWT 1.0 focus event.     * AWT 1.0 GOT_FOCUS event handler.  This method is meant to be
3391       * overridden by components providing their own GOT_FOCUS handler.
3392       * The default implementation simply returns false.
3393     *     *
3394     * @param evt the event to handle     * @param evt the event to handle
3395     * @param what the Object focused, ignored     * @param what the Object focused, ignored
3396     * @return false: since the method was deprecated, the return has no meaning     * @return false
3397     * @deprecated use {@link #processFocusEvent(FocusEvent)} instead     * @deprecated use {@link #processFocusEvent(FocusEvent)} instead
3398     */     */
3399    public boolean gotFocus(Event evt, Object what)    public boolean gotFocus(Event evt, Object what)
3400    {    {
     // XXX Add backward compatibility handling.  
3401      return false;      return false;
3402    }    }
3403    
3404    /**    /**
3405     * AWT 1.0 focus event.     * AWT 1.0 LOST_FOCUS event handler.  This method is meant to be
3406       * overridden by components providing their own LOST_FOCUS handler.
3407       * The default implementation simply returns false.
3408     *     *
3409     * @param evt the event to handle     * @param evt the event to handle
3410     * @param what the Object focused, ignored     * @param what the Object focused, ignored
3411     * @return false: since the method was deprecated, the return has no meaning     * @return false
3412     * @deprecated use {@link #processFocusEvent(FocusEvent)} instead     * @deprecated use {@link #processFocusEvent(FocusEvent)} instead
3413     */     */
3414    public boolean lostFocus(Event evt, Object what)    public boolean lostFocus(Event evt, Object what)
3415    {    {
     // XXX Add backward compatibility handling.  
3416      return false;      return false;
3417    }    }
3418    

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

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