Show
Ignore:
Timestamp:
08/24/08 14:57:52 (3 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

Allow null args

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/widgets/TableItem.d

    r246 r299  
    10511051 * 
    10521052 * @exception IllegalArgumentException <ul> 
    1053  *    <li>ERROR_NULL_ARGUMENT - if the array of images is null</li> 
    10541053 *    <li>ERROR_INVALID_ARGUMENT - if one of the images has been disposed</li> 
    10551054 * </ul> 
     
    10611060public void setImage (Image [] images) { 
    10621061    checkWidget(); 
    1063     if (images is null) error (DWT.ERROR_NULL_ARGUMENT); 
    10641062    for (int i=0; i<images.length; i++) { 
    10651063        setImage (i, images [i]); 
     
    11621160 * @param strings the array of new strings 
    11631161 * 
    1164  * @exception IllegalArgumentException <ul> 
    1165  *    <li>ERROR_NULL_ARGUMENT - if the text is null</li> 
    1166  * </ul> 
    11671162 * @exception DWTException <ul> 
    11681163 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> 
     
    11721167public void setText (String [] strings) { 
    11731168    checkWidget(); 
    1174     if (strings is null) error (DWT.ERROR_NULL_ARGUMENT); 
    11751169    for (int i=0; i<strings.length; i++) { 
    11761170        String string = strings [i]; 
     
    11851179 * @param string the new text 
    11861180 * 
    1187  * @exception IllegalArgumentException <ul> 
    1188  *    <li>ERROR_NULL_ARGUMENT - if the text is null</li> 
    1189  * </ul> 
    11901181 * @exception DWTException <ul> 
    11911182 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> 
     
    11951186public void setText (int index, String string) { 
    11961187    checkWidget(); 
    1197     if (string is null) error (DWT.ERROR_NULL_ARGUMENT); 
    11981188    if (index is 0) { 
    1199         if (string ==/*eq*/text) return; 
     1189        if (string.equals(text)) return; 
    12001190        super.setText (string.dup); 
    12011191    }