Changeset 243:ecb80b2a89e1
- Timestamp:
- 06/28/08 14:18:36
(4 months ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- branch:
- default
- Message:
work on allow null strings and arrays
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r237 |
r243 |
|
| 1124 | 1124 | * @exception IllegalArgumentException <ul> |
|---|
| 1125 | 1125 | * <li>ERROR_INVALID_RANGE - if the index is not between 0 and the number of elements in the list minus 1 (inclusive)</li> |
|---|
| 1126 | | * <li>ERROR_NULL_ARGUMENT - if the indices array is null</li> |
|---|
| 1127 | 1126 | * </ul> |
|---|
| 1128 | 1127 | * @exception DWTException <ul> |
|---|
| … | … | |
| 1138 | 1137 | public void clear (int [] indices) { |
|---|
| 1139 | 1138 | checkWidget (); |
|---|
| 1140 | | if (indices is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 1139 | // DWT extension: allow null array |
|---|
| | 1140 | //if (indices is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 1141 | 1141 | if (indices.length is 0) return; |
|---|
| 1142 | 1142 | int count = OS.SendMessage (handle, OS.LVM_GETITEMCOUNT, 0, 0); |
|---|
| … | … | |
| 1678 | 1678 | * @param indices the array of indices for the items to deselect |
|---|
| 1679 | 1679 | * |
|---|
| 1680 | | * @exception IllegalArgumentException <ul> |
|---|
| 1681 | | * <li>ERROR_NULL_ARGUMENT - if the set of indices is null</li> |
|---|
| 1682 | | * </ul> |
|---|
| 1683 | 1680 | * @exception DWTException <ul> |
|---|
| 1684 | 1681 | * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> |
|---|
| … | … | |
| 1688 | 1685 | public void deselect (int [] indices) { |
|---|
| 1689 | 1686 | checkWidget (); |
|---|
| 1690 | | if (indices is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 1687 | // DWT extension: allow null array |
|---|
| | 1688 | //if (indices is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 1691 | 1689 | if (indices.length is 0) return; |
|---|
| 1692 | 1690 | LVITEM lvItem; |
|---|
| … | … | |
| 2914 | 2912 | * @exception IllegalArgumentException <ul> |
|---|
| 2915 | 2913 | * <li>ERROR_INVALID_RANGE - if the index is not between 0 and the number of elements in the list minus 1 (inclusive)</li> |
|---|
| 2916 | | * <li>ERROR_NULL_ARGUMENT - if the indices array is null</li> |
|---|
| 2917 | 2914 | * </ul> |
|---|
| 2918 | 2915 | * @exception DWTException <ul> |
|---|
| … | … | |
| 2923 | 2920 | public void remove (int [] indices) { |
|---|
| 2924 | 2921 | checkWidget (); |
|---|
| 2925 | | if (indices is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 2922 | // DWT extension: allow null array |
|---|
| | 2923 | //if (indices is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 2926 | 2924 | if (indices.length is 0) return; |
|---|
| 2927 | 2925 | int [] newIndices = new int [indices.length]; |
|---|
| … | … | |
| 3135 | 3133 | * @param indices the array of indices for the items to select |
|---|
| 3136 | 3134 | * |
|---|
| 3137 | | * @exception IllegalArgumentException <ul> |
|---|
| 3138 | | * <li>ERROR_NULL_ARGUMENT - if the array of indices is null</li> |
|---|
| 3139 | | * </ul> |
|---|
| 3140 | 3135 | * @exception DWTException <ul> |
|---|
| 3141 | 3136 | * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> |
|---|
| … | … | |
| 3147 | 3142 | public void select (int [] indices) { |
|---|
| 3148 | 3143 | checkWidget (); |
|---|
| 3149 | | if (indices is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 3144 | // DWT extension: allow null array |
|---|
| | 3145 | //if (indices is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 3150 | 3146 | int length = indices.length; |
|---|
| 3151 | 3147 | if (length is 0 || ((style & DWT.SINGLE) !is 0 && length > 1)) return; |
|---|
| … | … | |
| 3963 | 3959 | * </ul> |
|---|
| 3964 | 3960 | * @exception IllegalArgumentException <ul> |
|---|
| 3965 | | * <li>ERROR_NULL_ARGUMENT - if the item order is null</li> |
|---|
| 3966 | 3961 | * <li>ERROR_INVALID_ARGUMENT - if the item order is not the same length as the number of items</li> |
|---|
| 3967 | 3962 | * </ul> |
|---|
| … | … | |
| 3976 | 3971 | public void setColumnOrder (int [] order) { |
|---|
| 3977 | 3972 | checkWidget (); |
|---|
| 3978 | | if (order is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 3973 | // DWT extension: allow null array |
|---|
| | 3974 | //if (order is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 3979 | 3975 | auto hwndHeader = cast(HWND) OS.SendMessage (handle, OS.LVM_GETHEADER, 0, 0); |
|---|
| 3980 | 3976 | if (columnCount is 0) { |
|---|
| … | … | |
| 4699 | 4695 | * @param indices the indices of the items to select |
|---|
| 4700 | 4696 | * |
|---|
| 4701 | | * @exception IllegalArgumentException <ul> |
|---|
| 4702 | | * <li>ERROR_NULL_ARGUMENT - if the array of indices is null</li> |
|---|
| 4703 | | * </ul> |
|---|
| 4704 | 4697 | * @exception DWTException <ul> |
|---|
| 4705 | 4698 | * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> |
|---|
| … | … | |
| 4712 | 4705 | public void setSelection (int [] indices) { |
|---|
| 4713 | 4706 | checkWidget (); |
|---|
| 4714 | | if (indices is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 4707 | // DWT extension: allow null array |
|---|
| | 4708 | //if (indices is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 4715 | 4709 | deselectAll (); |
|---|
| 4716 | 4710 | int length = indices.length; |
|---|
| … | … | |
| 4760 | 4754 | * |
|---|
| 4761 | 4755 | * @exception IllegalArgumentException <ul> |
|---|
| 4762 | | * <li>ERROR_NULL_ARGUMENT - if the array of items is null</li> |
|---|
| 4763 | 4756 | * <li>ERROR_INVALID_ARGUMENT - if one of the items has been disposed</li> |
|---|
| 4764 | 4757 | * </ul> |
|---|
| … | … | |
| 4774 | 4767 | public void setSelection (TableItem [] items) { |
|---|
| 4775 | 4768 | checkWidget (); |
|---|
| 4776 | | if (items is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 4769 | // DWT extension: allow null array |
|---|
| | 4770 | //if (items is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 4777 | 4771 | deselectAll (); |
|---|
| 4778 | 4772 | int length = items.length; |
|---|
| r213 |
r243 |
|
| 781 | 781 | override public void setText (String string) { |
|---|
| 782 | 782 | checkWidget (); |
|---|
| 783 | | if (string is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 784 | | if (string==/*eq*/text) return; |
|---|
| | 783 | // DWT extension: allow null string |
|---|
| | 784 | //if (string is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 785 | if (string.equals (text)) return; |
|---|
| 785 | 786 | int index = parent.indexOf (this); |
|---|
| 786 | 787 | if (index is -1) return; |
|---|
| r237 |
r243 |
|
| 337 | 337 | * @param string the string to be appended |
|---|
| 338 | 338 | * |
|---|
| 339 | | * @exception IllegalArgumentException <ul> |
|---|
| 340 | | * <li>ERROR_NULL_ARGUMENT - if the string is null</li> |
|---|
| 341 | | * </ul> |
|---|
| 342 | 339 | * @exception DWTException <ul> |
|---|
| 343 | 340 | * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> |
|---|
| … | … | |
| 347 | 344 | public void append (String string) { |
|---|
| 348 | 345 | checkWidget (); |
|---|
| 349 | | if (string is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 346 | // DWT extension: allow null string |
|---|
| | 347 | //if (string is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 350 | 348 | string = Display.withCrLf (string); |
|---|
| 351 | 349 | int length = OS.GetWindowTextLength (handle); |
|---|
| … | … | |
| 1210 | 1208 | * @param string the string |
|---|
| 1211 | 1209 | * |
|---|
| 1212 | | * @exception IllegalArgumentException <ul> |
|---|
| 1213 | | * <li>ERROR_NULL_ARGUMENT - if the string is <code>null</code></li> |
|---|
| 1214 | | * </ul> |
|---|
| 1215 | 1210 | * @exception DWTException <ul> |
|---|
| 1216 | 1211 | * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> |
|---|
| … | … | |
| 1220 | 1215 | public void insert (String string) { |
|---|
| 1221 | 1216 | checkWidget (); |
|---|
| 1222 | | if (string is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 1217 | // DWT extension: allow null string |
|---|
| | 1218 | //if (string is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 1223 | 1219 | string = Display.withCrLf (string); |
|---|
| 1224 | 1220 | if (hooks (DWT.Verify) || filters (DWT.Verify)) { |
|---|
| … | … | |
| 1658 | 1654 | * @param message the new message |
|---|
| 1659 | 1655 | * |
|---|
| 1660 | | * @exception IllegalArgumentException <ul> |
|---|
| 1661 | | * <li>ERROR_NULL_ARGUMENT - if the message is null</li> |
|---|
| 1662 | | * </ul> |
|---|
| 1663 | 1656 | * @exception DWTException <ul> |
|---|
| 1664 | 1657 | * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> |
|---|
| … | … | |
| 1670 | 1663 | public void setMessage (String message) { |
|---|
| 1671 | 1664 | checkWidget (); |
|---|
| 1672 | | if (message is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 1665 | // DWT extension: allow null string |
|---|
| | 1666 | //if (message is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 1673 | 1667 | this.message = message; |
|---|
| 1674 | 1668 | if (OS.COMCTL32_MAJOR >= 6) { |
|---|
| … | … | |
| 1878 | 1872 | * @param string the new text |
|---|
| 1879 | 1873 | * |
|---|
| 1880 | | * @exception IllegalArgumentException <ul> |
|---|
| 1881 | | * <li>ERROR_NULL_ARGUMENT - if the string is null</li> |
|---|
| 1882 | | * </ul> |
|---|
| 1883 | 1874 | * @exception DWTException <ul> |
|---|
| 1884 | 1875 | * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> |
|---|
| … | … | |
| 1888 | 1879 | public void setText (String string) { |
|---|
| 1889 | 1880 | checkWidget (); |
|---|
| 1890 | | if (string is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 1881 | // DWT extension: allow null string |
|---|
| | 1882 | //if (string is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 1891 | 1883 | string = Display.withCrLf (string); |
|---|
| 1892 | 1884 | if (hooks (DWT.Verify) || filters (DWT.Verify)) { |
|---|
| r213 |
r243 |
|
| 761 | 761 | * @param string the new text |
|---|
| 762 | 762 | * |
|---|
| 763 | | * @exception IllegalArgumentException <ul> |
|---|
| 764 | | * <li>ERROR_NULL_ARGUMENT - if the text is null</li> |
|---|
| 765 | | * </ul> |
|---|
| 766 | 763 | * @exception DWTException <ul> |
|---|
| 767 | 764 | * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> |
|---|
| … | … | |
| 771 | 768 | override public void setText (String string) { |
|---|
| 772 | 769 | checkWidget(); |
|---|
| 773 | | if (string is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 770 | // DWT extension: allow null string |
|---|
| | 771 | //if (string is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 774 | 772 | if ((style & DWT.SEPARATOR) !is 0) return; |
|---|
| 775 | | if (string==/*eq*/text) return; |
|---|
| | 773 | if (string.equals(text)) return; |
|---|
| 776 | 774 | super.setText (string); |
|---|
| 777 | 775 | auto hwnd = parent.handle; |
|---|
| r213 |
r243 |
|
| 395 | 395 | * @param string the new message |
|---|
| 396 | 396 | * |
|---|
| 397 | | * @exception IllegalArgumentException <ul> |
|---|
| 398 | | * <li>ERROR_NULL_ARGUMENT - if the text is null</li> |
|---|
| 399 | | * </ul> |
|---|
| 400 | 397 | * @exception DWTException <ul> |
|---|
| 401 | 398 | * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> |
|---|
| … | … | |
| 405 | 402 | public void setMessage (String string) { |
|---|
| 406 | 403 | checkWidget (); |
|---|
| 407 | | if (string is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 404 | // DWT extension: allow null string |
|---|
| | 405 | //if (string is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 408 | 406 | message = string; |
|---|
| 409 | 407 | //TODO - update when visible |
|---|
| … | … | |
| 415 | 413 | * @param string the new text |
|---|
| 416 | 414 | * |
|---|
| 417 | | * @exception IllegalArgumentException <ul> |
|---|
| 418 | | * <li>ERROR_NULL_ARGUMENT - if the text is null</li> |
|---|
| 419 | | * </ul> |
|---|
| 420 | 415 | * @exception DWTException <ul> |
|---|
| 421 | 416 | * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> |
|---|
| … | … | |
| 425 | 420 | public void setText (String string) { |
|---|
| 426 | 421 | checkWidget (); |
|---|
| 427 | | if (string is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 422 | // DWT extension: allow null string |
|---|
| | 423 | //if (string is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 428 | 424 | text = string; |
|---|
| 429 | 425 | //TODO - update when visible |
|---|
| r217 |
r243 |
|
| 803 | 803 | * |
|---|
| 804 | 804 | * @exception IllegalArgumentException <ul> |
|---|
| 805 | | * <li>ERROR_NULL_ARGUMENT - if the set of rectangles is null or contains a null rectangle</li> |
|---|
| | 805 | * <li>ERROR_NULL_ARGUMENT - if the set of rectangles contains a null rectangle</li> |
|---|
| 806 | 806 | * </ul> |
|---|
| 807 | 807 | * @exception DWTException <ul> |
|---|
| … | … | |
| 812 | 812 | public void setRectangles (Rectangle [] rectangles) { |
|---|
| 813 | 813 | checkWidget (); |
|---|
| 814 | | if (rectangles is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 814 | // DWT extension: allow null array |
|---|
| | 815 | //if (rectangles is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 815 | 816 | this.rectangles = new Rectangle [rectangles.length]; |
|---|
| 816 | 817 | for (int i = 0; i < rectangles.length; i++) { |
|---|
| r237 |
r243 |
|
| 4521 | 4521 | * </ul> |
|---|
| 4522 | 4522 | * @exception IllegalArgumentException <ul> |
|---|
| 4523 | | * <li>ERROR_NULL_ARGUMENT - if the item order is null</li> |
|---|
| 4524 | 4523 | * <li>ERROR_INVALID_ARGUMENT - if the item order is not the same length as the number of items</li> |
|---|
| 4525 | 4524 | * </ul> |
|---|
| … | … | |
| 4534 | 4533 | public void setColumnOrder (int [] order) { |
|---|
| 4535 | 4534 | checkWidget (); |
|---|
| 4536 | | if (order is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 4535 | // DWT extension: allow null array |
|---|
| | 4536 | //if (order is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 4537 | 4537 | if (columnCount is 0) { |
|---|
| 4538 | 4538 | if (order.length !is 0) error (DWT.ERROR_INVALID_ARGUMENT); |
|---|
| … | … | |
| 4901 | 4901 | * |
|---|
| 4902 | 4902 | * @exception IllegalArgumentException <ul> |
|---|
| 4903 | | * <li>ERROR_NULL_ARGUMENT - if the array of items is null</li> |
|---|
| 4904 | 4903 | * <li>ERROR_INVALID_ARGUMENT - if one of the items has been disposed</li> |
|---|
| 4905 | 4904 | * </ul> |
|---|
| … | … | |
| 4913 | 4912 | public void setSelection (TreeItem [] items) { |
|---|
| 4914 | 4913 | checkWidget (); |
|---|
| 4915 | | if (items is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 4914 | // DWT extension: allow null array |
|---|
| | 4915 | //if (items is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 4916 | 4916 | int length = items.length; |
|---|
| 4917 | 4917 | if (length is 0 || ((style & DWT.SINGLE) !is 0 && length > 1)) { |
|---|
| r237 |
r243 |
|
| 659 | 659 | override public void setText (String string) { |
|---|
| 660 | 660 | checkWidget (); |
|---|
| 661 | | if (string is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 661 | // DWT extension: allow null string |
|---|
| | 662 | //if (string is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 662 | 663 | if (string.equals (text)) return; |
|---|
| 663 | 664 | int index = parent.indexOf (this); |
|---|
| r237 |
r243 |
|
| 1631 | 1631 | * |
|---|
| 1632 | 1632 | * @exception IllegalArgumentException <ul> |
|---|
| 1633 | | * <li>ERROR_NULL_ARGUMENT - if the array of images is null</li> |
|---|
| 1634 | 1633 | * <li>ERROR_INVALID_ARGUMENT - if one of the images has been disposed</li> |
|---|
| 1635 | 1634 | * </ul> |
|---|
| … | … | |
| 1643 | 1642 | public void setImage (Image [] images) { |
|---|
| 1644 | 1643 | checkWidget(); |
|---|
| 1645 | | if (images is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 1644 | // DWT extension; allow null array |
|---|
| | 1645 | //if (images is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 1646 | 1646 | for (int i=0; i<images.length; i++) { |
|---|
| 1647 | 1647 | setImage (i, images [i]); |
|---|
| … | … | |
| 1751 | 1751 | * @param strings the array of new strings |
|---|
| 1752 | 1752 | * |
|---|
| 1753 | | * @exception IllegalArgumentException <ul> |
|---|
| 1754 | | * <li>ERROR_NULL_ARGUMENT - if the text is null</li> |
|---|
| 1755 | | * </ul> |
|---|
| 1756 | 1753 | * @exception DWTException <ul> |
|---|
| 1757 | 1754 | * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> |
|---|
| … | … | |
| 1763 | 1760 | public void setText (String[] strings) { |
|---|
| 1764 | 1761 | checkWidget(); |
|---|
| 1765 | | if (strings is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 1762 | // DWT extension: allow null array |
|---|
| | 1763 | //if (strings is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 1766 | 1764 | for (int i=0; i<strings.length; i++) { |
|---|
| 1767 | 1765 | String string = strings [i]; |
|---|
| … | … | |
| 1776 | 1774 | * @param string the new text |
|---|
| 1777 | 1775 | * |
|---|
| 1778 | | * @exception IllegalArgumentException <ul> |
|---|
| 1779 | | * <li>ERROR_NULL_ARGUMENT - if the text is null</li> |
|---|
| 1780 | | * </ul> |
|---|
| 1781 | 1776 | * @exception DWTException <ul> |
|---|
| 1782 | 1777 | * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> |
|---|
| … | … | |
| 1788 | 1783 | public void setText (int index, String string) { |
|---|
| 1789 | 1784 | checkWidget(); |
|---|
| 1790 | | if (string is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 1785 | // DWT extension: allow null string |
|---|
| | 1786 | //if (string is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 1791 | 1787 | if (index is 0) { |
|---|
| 1792 | 1788 | if (string==/*eq*/text) return; |
|---|
| r234 |
r243 |
|
| 569 | 569 | * @return the value of the property or null if it has not been set |
|---|
| 570 | 570 | * |
|---|
| 571 | | * @exception IllegalArgumentException <ul> |
|---|
| 572 | | * <li>ERROR_NULL_ARGUMENT - if the key is null</li> |
|---|
| 573 | | * </ul> |
|---|
| 574 | 571 | * @exception DWTException <ul> |
|---|
| 575 | 572 | * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> |
|---|
| … | … | |
| 581 | 578 | public Object getData (String key) { |
|---|
| 582 | 579 | checkWidget(); |
|---|
| 583 | | if (key is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 580 | // DWT extension: allow null key |
|---|
| | 581 | //if (key is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 584 | 582 | if ((state & KEYED_DATA) !is 0) { |
|---|
| 585 | 583 | Object [] table = (cast(ArrayWrapperObject) data).array; |
|---|
| … | … | |
| 1144 | 1142 | * @param value the new value for the property |
|---|
| 1145 | 1143 | * |
|---|
| 1146 | | * @exception IllegalArgumentException <ul> |
|---|
| 1147 | | * <li>ERROR_NULL_ARGUMENT - if the key is null</li> |
|---|
| 1148 | | * </ul> |
|---|
| 1149 | 1144 | * @exception DWTException <ul> |
|---|
| 1150 | 1145 | * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> |
|---|
| … | … | |
| 1156 | 1151 | public void setData (String key, Object value) { |
|---|
| 1157 | 1152 | checkWidget(); |
|---|
| 1158 | | if (key.length is 0) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 1153 | // DWT extension: allow null key |
|---|
| | 1154 | //if (key.length is 0) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 1159 | 1155 | int index = 1; |
|---|
| 1160 | 1156 | Object [] table = null; |
|---|