src/share/classes/java/awt/Toolkit.java

Print this page

        

*** 1854,1866 **** */ protected void initializeDesktopProperties() { } /** ! * Adds the specified property change listener for the named desktop ! * property. When a {@link PropertyChangeListenerProxy} object is added, ! * its property name is ignored, and the wrapped listener is added. * If {@code name} is {@code null} or {@code pcl} is {@code null}, * no exception is thrown and no action is performed. * * @param name The name of the property to listen for * @param pcl The property change listener --- 1854,1868 ---- */ protected void initializeDesktopProperties() { } /** ! * Adds the specified property change listener for the named ! * desktop property. When a {@link ! * java.beans.PropertyChangeListenerProxy ! * PropertyChangeListenerProxy} object is added, its property name ! * is ignored, and the wrapped listener is added. * If {@code name} is {@code null} or {@code pcl} is {@code null}, * no exception is thrown and no action is performed. * * @param name The name of the property to listen for * @param pcl The property change listener
*** 1872,1884 **** desktopPropsSupport.addPropertyChangeListener(name, pcl); } /** * Removes the specified property change listener for the named ! * desktop property. When a {@link PropertyChangeListenerProxy} object ! * is removed, its property name is ignored, and ! * the wrapped listener is removed. * If {@code name} is {@code null} or {@code pcl} is {@code null}, * no exception is thrown and no action is performed. * * @param name The name of the property to remove * @param pcl The property change listener --- 1874,1887 ---- desktopPropsSupport.addPropertyChangeListener(name, pcl); } /** * Removes the specified property change listener for the named ! * desktop property. When a {@link ! * java.beans.PropertyChangeListenerProxy ! * PropertyChangeListenerProxy} object is removed, its property ! * name is ignored, and the wrapped listener is removed. * If {@code name} is {@code null} or {@code pcl} is {@code null}, * no exception is thrown and no action is performed. * * @param name The name of the property to remove * @param pcl The property change listener
*** 1894,1904 **** * Returns an array of all the property change listeners * registered on this toolkit. The returned array * contains {@code PropertyChangeListenerProxy} objects * that associate listeners with the names of desktop properties. * ! * @return all of this toolkit's {@ code PropertyChangeListener} * objects wrapped in {@code PropertyChangeListenerProxy} objects * or an empty array if no listeners are added * * @see PropertyChangeSupport#getPropertyChangeListeners() * @since 1.4 --- 1897,1907 ---- * Returns an array of all the property change listeners * registered on this toolkit. The returned array * contains {@code PropertyChangeListenerProxy} objects * that associate listeners with the names of desktop properties. * ! * @return all of this toolkit's {@code PropertyChangeListener} * objects wrapped in {@code PropertyChangeListenerProxy} objects * or an empty array if no listeners are added * * @see PropertyChangeSupport#getPropertyChangeListeners() * @since 1.4