jdk/src/share/classes/java/awt/Toolkit.java
changeset 10050 1ce86f81cb71
parent 9661 d837c8c8ac46
child 10068 5be904b6a4cc
equal deleted inserted replaced
10049:f3eb0df61c12 10050:1ce86f81cb71
  1854      */
  1854      */
  1855     protected void initializeDesktopProperties() {
  1855     protected void initializeDesktopProperties() {
  1856     }
  1856     }
  1857 
  1857 
  1858     /**
  1858     /**
  1859      * Adds the specified property change listener for the named desktop
  1859      * Adds the specified property change listener for the named
  1860      * property. When a {@link PropertyChangeListenerProxy} object is added,
  1860      * desktop property. When a {@link
  1861      * its property name is ignored, and the wrapped listener is added.
  1861      * java.beans.PropertyChangeListenerProxy
       
  1862      * PropertyChangeListenerProxy} object is added, its property name
       
  1863      * is ignored, and the wrapped listener is added.
  1862      * If {@code name} is {@code null} or {@code pcl} is {@code null},
  1864      * If {@code name} is {@code null} or {@code pcl} is {@code null},
  1863      * no exception is thrown and no action is performed.
  1865      * no exception is thrown and no action is performed.
  1864      *
  1866      *
  1865      * @param   name The name of the property to listen for
  1867      * @param   name The name of the property to listen for
  1866      * @param   pcl The property change listener
  1868      * @param   pcl The property change listener
  1872         desktopPropsSupport.addPropertyChangeListener(name, pcl);
  1874         desktopPropsSupport.addPropertyChangeListener(name, pcl);
  1873     }
  1875     }
  1874 
  1876 
  1875     /**
  1877     /**
  1876      * Removes the specified property change listener for the named
  1878      * Removes the specified property change listener for the named
  1877      * desktop property. When a {@link PropertyChangeListenerProxy} object
  1879      * desktop property. When a {@link
  1878      * is removed, its property name is ignored, and
  1880      * java.beans.PropertyChangeListenerProxy
  1879      * the wrapped listener is removed.
  1881      * PropertyChangeListenerProxy} object is removed, its property
       
  1882      * name is ignored, and the wrapped listener is removed.
  1880      * If {@code name} is {@code null} or {@code pcl} is {@code null},
  1883      * If {@code name} is {@code null} or {@code pcl} is {@code null},
  1881      * no exception is thrown and no action is performed.
  1884      * no exception is thrown and no action is performed.
  1882      *
  1885      *
  1883      * @param   name The name of the property to remove
  1886      * @param   name The name of the property to remove
  1884      * @param   pcl The property change listener
  1887      * @param   pcl The property change listener
  1894      * Returns an array of all the property change listeners
  1897      * Returns an array of all the property change listeners
  1895      * registered on this toolkit. The returned array
  1898      * registered on this toolkit. The returned array
  1896      * contains {@code PropertyChangeListenerProxy} objects
  1899      * contains {@code PropertyChangeListenerProxy} objects
  1897      * that associate listeners with the names of desktop properties.
  1900      * that associate listeners with the names of desktop properties.
  1898      *
  1901      *
  1899      * @return all of this toolkit's {@ code PropertyChangeListener}
  1902      * @return all of this toolkit's {@code PropertyChangeListener}
  1900      *         objects wrapped in {@code PropertyChangeListenerProxy} objects
  1903      *         objects wrapped in {@code PropertyChangeListenerProxy} objects
  1901      *         or an empty array  if no listeners are added
  1904      *         or an empty array  if no listeners are added
  1902      *
  1905      *
  1903      * @see PropertyChangeSupport#getPropertyChangeListeners()
  1906      * @see PropertyChangeSupport#getPropertyChangeListeners()
  1904      * @since 1.4
  1907      * @since 1.4