/[classpath]/classpath/javax/swing/JComponent.java
ViewVC logotype

Diff of /classpath/javax/swing/JComponent.java

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

revision 1.20.2.1 by gnu_andrew, Fri Jan 14 10:24:16 2005 UTC revision 1.20.2.2 by gnu_andrew, Sat Jan 15 17:02:20 2005 UTC
# Line 35  this exception to your version of the li Line 35  this exception to your version of the li
35  obligated to do so.  If you do not wish to do so, delete this  obligated to do so.  If you do not wish to do so, delete this
36  exception statement from your version. */  exception statement from your version. */
37    
38    
39  package javax.swing;  package javax.swing;
40    
41  import java.awt.AWTEvent;  import java.awt.AWTEvent;
# Line 68  import java.io.Serializable; Line 69  import java.io.Serializable;
69  import java.util.EventListener;  import java.util.EventListener;
70  import java.util.Hashtable;  import java.util.Hashtable;
71  import java.util.Locale;  import java.util.Locale;
72  import java.util.Vector;  
73  import javax.accessibility.Accessible;  import javax.accessibility.Accessible;
74  import javax.accessibility.AccessibleContext;  import javax.accessibility.AccessibleContext;
75  import javax.accessibility.AccessibleRole;  import javax.accessibility.AccessibleRole;
# Line 79  import javax.swing.event.EventListenerLi Line 80  import javax.swing.event.EventListenerLi
80  import javax.swing.event.SwingPropertyChangeSupport;  import javax.swing.event.SwingPropertyChangeSupport;
81  import javax.swing.plaf.ComponentUI;  import javax.swing.plaf.ComponentUI;
82    
   
83  /**  /**
84   * Every component in swing inherits from this class (JLabel, JButton, etc).   * Every component in swing inherits from this class (JLabel, JButton, etc).
85   * It contains generic methods to manage events, properties and sizes. Actual   * It contains generic methods to manage events, properties and sizes. Actual
# Line 615  public abstract class JComponent extends Line 615  public abstract class JComponent extends
615                                   boolean newValue)                                   boolean newValue)
616    {    {
617      if (changeSupport != null)      if (changeSupport != null)
618        changeSupport.firePropertyChange(propertyName, new Boolean(oldValue),        changeSupport.firePropertyChange(propertyName, Boolean.valueOf(oldValue),
619                                         new Boolean(newValue));                                         Boolean.valueOf(newValue));
620    }    }
621    
622    /**    /**
# Line 1063  public abstract class JComponent extends Line 1063  public abstract class JComponent extends
1063        
1064    /**    /**
1065     * Return the value of the {@link #nextFocusableComponent} property.     * Return the value of the {@link #nextFocusableComponent} property.
    *  
    * @deprecated See {@link java.awt.FocusTraversalPolicy}  
1066     *     *
1067     * @return The current value of the property, or <code>null</code>     * @return The current value of the property, or <code>null</code>
1068     * if none has been set.     * if none has been set.
1069       *
1070       * @deprecated See {@link java.awt.FocusTraversalPolicy}
1071     */     */
1072    public Component getNextFocusableComponent()    public Component getNextFocusableComponent()
1073    {    {
# Line 1302  public abstract class JComponent extends Line 1302  public abstract class JComponent extends
1302     * @return <code>true</code> if you want this component to manage its own     * @return <code>true</code> if you want this component to manage its own
1303     * focus, otherwise (by default) <code>false</code>     * focus, otherwise (by default) <code>false</code>
1304     *     *
1305     * @deprecated Use {@link Component.setFocusTraversalKeys(int,Set)} and     * @deprecated 1.4 Use {@link Component.setFocusTraversalKeys(int,Set)} and
1306     * {@link Container.setFocusCycleRoot(boolean)} instead     * {@link Container.setFocusCycleRoot(boolean)} instead
1307     */     */
1308    public boolean isManagingFocus()    public boolean isManagingFocus()
# Line 1686  public abstract class JComponent extends Line 1686  public abstract class JComponent extends
1686    }    }
1687    
1688    /**    /**
    * @deprecated As of 1.3 KeyStrokes can be registered with multiple  
    * simultaneous conditions.  
    *  
1689     * Return the condition that determines whether a registered action     * Return the condition that determines whether a registered action
1690     * occurs in response to the specified keystroke.     * occurs in response to the specified keystroke.
1691     *     *
# Line 1698  public abstract class JComponent extends Line 1695  public abstract class JComponent extends
1695     * #WHEN_ANCESTOR_OF_FOCUSED_COMPONENT}, {@link #WHEN_FOCUSED}, or {@link     * #WHEN_ANCESTOR_OF_FOCUSED_COMPONENT}, {@link #WHEN_FOCUSED}, or {@link
1696     * #WHEN_IN_FOCUSED_WINDOW}     * #WHEN_IN_FOCUSED_WINDOW}
1697     *     *
1698       * @deprecated As of 1.3 KeyStrokes can be registered with multiple
1699       * simultaneous conditions.
1700       *
1701     * @see #registerKeyboardAction       * @see #registerKeyboardAction  
1702     * @see #unregisterKeyboardAction       * @see #unregisterKeyboardAction  
1703     * @see #resetKeyboardActiond     * @see #resetKeyboardActiond
# Line 1718  public abstract class JComponent extends Line 1718  public abstract class JComponent extends
1718    }    }
1719    
1720    /**    /**
    * @deprecated Use {@link #getActionMap()}  
    *  
1721     * Get the ActionListener (typically an {@link Action} object) which is     * Get the ActionListener (typically an {@link Action} object) which is
1722     * associated with a particular keystroke.     * associated with a particular keystroke.
1723     *     *
1724     * @param aKeyStroke The keystroke to retrieve the action of     * @param aKeyStroke The keystroke to retrieve the action of
1725     *     *
1726     * @return The action associated with the specified keystroke     * @return The action associated with the specified keystroke
1727       *
1728       * @deprecated Use {@link #getActionMap()}
1729     */     */
1730    public ActionListener getActionForKeyStroke(KeyStroke ks)    public ActionListener getActionForKeyStroke(KeyStroke ks)
1731    {    {

Legend:
Removed from v.1.20.2.1  
changed lines
  Added in v.1.20.2.2

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