comparison dwt/accessibility/Accessible.d @ 320:f516317c1e89

Fix tango.core.Array.remove use
author Frank Benoit <benoit@tionex.de>
date Fri, 19 Sep 2008 22:29:59 +0200
parents c0d810de7093
children
comparison
equal deleted inserted replaced
319:57e961636f92 320:f516317c1e89
237 * @see #addAccessibleControlListener 237 * @see #addAccessibleControlListener
238 */ 238 */
239 public void removeAccessibleControlListener (AccessibleControlListener listener) { 239 public void removeAccessibleControlListener (AccessibleControlListener listener) {
240 checkWidget (); 240 checkWidget ();
241 if (listener is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); 241 if (listener is null) DWT.error (DWT.ERROR_NULL_ARGUMENT);
242 remove( controlListeners, listener, delegate bool(AccessibleControlListener a1, AccessibleControlListener a2 ){ return a1 is a2; }); 242 controlListeners.length = remove( controlListeners, listener, delegate bool(AccessibleControlListener a1, AccessibleControlListener a2 ){ return a1 is a2; });
243 } 243 }
244 244
245 /** 245 /**
246 * Removes the listener from the collection of listeners who will 246 * Removes the listener from the collection of listeners who will
247 * be notified when an accessible client asks for certain strings, 247 * be notified when an accessible client asks for certain strings,
262 * @see #addAccessibleListener 262 * @see #addAccessibleListener
263 */ 263 */
264 public void removeAccessibleListener (AccessibleListener listener) { 264 public void removeAccessibleListener (AccessibleListener listener) {
265 checkWidget (); 265 checkWidget ();
266 if (listener is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); 266 if (listener is null) DWT.error (DWT.ERROR_NULL_ARGUMENT);
267 remove( accessibleListeners, listener, delegate bool( AccessibleListener a1, AccessibleListener a2 ){ return a1 is a2; }); 267 accessibleListeners.length = remove( accessibleListeners, listener, delegate bool( AccessibleListener a1, AccessibleListener a2 ){ return a1 is a2; });
268 } 268 }
269 269
270 /** 270 /**
271 * Removes the listener from the collection of listeners who will 271 * Removes the listener from the collection of listeners who will
272 * be notified when an accessible client asks for custom text control 272 * be notified when an accessible client asks for custom text control
289 * @since 3.0 289 * @since 3.0
290 */ 290 */
291 public void removeAccessibleTextListener (AccessibleTextListener listener) { 291 public void removeAccessibleTextListener (AccessibleTextListener listener) {
292 checkWidget (); 292 checkWidget ();
293 if (listener is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); 293 if (listener is null) DWT.error (DWT.ERROR_NULL_ARGUMENT);
294 remove( textListeners, listener, delegate bool(AccessibleTextListener a1, AccessibleTextListener a2 ){ return a1 is a2; }); 294 textListeners.length = remove( textListeners, listener, delegate bool(AccessibleTextListener a1, AccessibleTextListener a2 ){ return a1 is a2; });
295 } 295 }
296 296
297 /** 297 /**
298 * Sends a message to accessible clients that the child selection 298 * Sends a message to accessible clients that the child selection
299 * within a custom container control has changed. 299 * within a custom container control has changed.