Changeset 299:4faf63f6948f
- 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
| r246 |
r299 |
|
| 1051 | 1051 | * |
|---|
| 1052 | 1052 | * @exception IllegalArgumentException <ul> |
|---|
| 1053 | | * <li>ERROR_NULL_ARGUMENT - if the array of images is null</li> |
|---|
| 1054 | 1053 | * <li>ERROR_INVALID_ARGUMENT - if one of the images has been disposed</li> |
|---|
| 1055 | 1054 | * </ul> |
|---|
| … | … | |
| 1061 | 1060 | public void setImage (Image [] images) { |
|---|
| 1062 | 1061 | checkWidget(); |
|---|
| 1063 | | if (images is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 1064 | 1062 | for (int i=0; i<images.length; i++) { |
|---|
| 1065 | 1063 | setImage (i, images [i]); |
|---|
| … | … | |
| 1162 | 1160 | * @param strings the array of new strings |
|---|
| 1163 | 1161 | * |
|---|
| 1164 | | * @exception IllegalArgumentException <ul> |
|---|
| 1165 | | * <li>ERROR_NULL_ARGUMENT - if the text is null</li> |
|---|
| 1166 | | * </ul> |
|---|
| 1167 | 1162 | * @exception DWTException <ul> |
|---|
| 1168 | 1163 | * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> |
|---|
| … | … | |
| 1172 | 1167 | public void setText (String [] strings) { |
|---|
| 1173 | 1168 | checkWidget(); |
|---|
| 1174 | | if (strings is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 1175 | 1169 | for (int i=0; i<strings.length; i++) { |
|---|
| 1176 | 1170 | String string = strings [i]; |
|---|
| … | … | |
| 1185 | 1179 | * @param string the new text |
|---|
| 1186 | 1180 | * |
|---|
| 1187 | | * @exception IllegalArgumentException <ul> |
|---|
| 1188 | | * <li>ERROR_NULL_ARGUMENT - if the text is null</li> |
|---|
| 1189 | | * </ul> |
|---|
| 1190 | 1181 | * @exception DWTException <ul> |
|---|
| 1191 | 1182 | * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> |
|---|
| … | … | |
| 1195 | 1186 | public void setText (int index, String string) { |
|---|
| 1196 | 1187 | checkWidget(); |
|---|
| 1197 | | if (string is null) error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 1198 | 1188 | if (index is 0) { |
|---|
| 1199 | | if (string ==/*eq*/text) return; |
|---|
| | 1189 | if (string.equals(text)) return; |
|---|
| 1200 | 1190 | super.setText (string.dup); |
|---|
| 1201 | 1191 | } |
|---|