|
Lines 42-53
Link Here
|
| 42 |
*/ |
42 |
*/ |
| 43 |
public class ControlLCAUtil { |
43 |
public class ControlLCAUtil { |
| 44 |
|
44 |
|
| 45 |
private static final Object[] PARAM_STYLE_BORDER |
|
|
| 46 |
= new Object[] { JSConst.JS_STYLE_FLAG_BORDER }; |
| 47 |
|
| 48 |
private static final Object[] PARAM_STYLE_FLAT |
| 49 |
= new Object[] { JSConst.JS_STYLE_FLAG_FLAT }; |
| 50 |
|
| 51 |
private static final JSListenerInfo FOCUS_GAINED_LISTENER_INFO |
45 |
private static final JSListenerInfo FOCUS_GAINED_LISTENER_INFO |
| 52 |
= new JSListenerInfo( "focusin", |
46 |
= new JSListenerInfo( "focusin", |
| 53 |
"org.eclipse.swt.EventUtil.focusGained", |
47 |
"org.eclipse.swt.EventUtil.focusGained", |
|
Lines 196-212
Link Here
|
| 196 |
} |
190 |
} |
| 197 |
|
191 |
|
| 198 |
/** |
192 |
/** |
| 199 |
* Writes JavaScript code to the response that resets the bounds of a control. |
|
|
| 200 |
* This method is intended to be used by implementations of the method |
| 201 |
* {@link AbstractWidgetLCA#createResetHandlerCalls(String)}. |
| 202 |
* |
| 203 |
* @throws IOException |
| 204 |
*/ |
| 205 |
public static void resetBounds() throws IOException { |
| 206 |
WidgetLCAUtil.resetBounds(); |
| 207 |
} |
| 208 |
|
| 209 |
/** |
| 210 |
* Determines whether the z-index of the given control has changed during the |
193 |
* Determines whether the z-index of the given control has changed during the |
| 211 |
* processing of the current request and if so, writes JavaScript code to the |
194 |
* processing of the current request and if so, writes JavaScript code to the |
| 212 |
* response that updates the client-side z-index. |
195 |
* response that updates the client-side z-index. |
|
Lines 225-242
Link Here
|
| 225 |
} |
208 |
} |
| 226 |
|
209 |
|
| 227 |
/** |
210 |
/** |
| 228 |
* Writes JavaScript code to the response that resets the z-index property of |
|
|
| 229 |
* a control. This method is intended to be used by implementations of the |
| 230 |
* method {@link AbstractWidgetLCA#createResetHandlerCalls(String)}. |
| 231 |
* |
| 232 |
* @throws IOException |
| 233 |
*/ |
| 234 |
public static void resetZIndex() throws IOException { |
| 235 |
JSWriter writer = JSWriter.getWriterForResetHandler(); |
| 236 |
writer.reset( JSConst.QX_FIELD_Z_INDEX ); |
| 237 |
} |
| 238 |
|
| 239 |
/** |
| 240 |
* Determines whether the visibility of the given control has changed during |
211 |
* Determines whether the visibility of the given control has changed during |
| 241 |
* the processing of the current request and if so, writes JavaScript code to |
212 |
* the processing of the current request and if so, writes JavaScript code to |
| 242 |
* the response that updates the client-side visibility. |
213 |
* the response that updates the client-side visibility. |
|
Lines 260-279
Link Here
|
| 260 |
} |
231 |
} |
| 261 |
|
232 |
|
| 262 |
/** |
233 |
/** |
| 263 |
* Writes JavaScript code to the response that resets the property |
|
|
| 264 |
* <code>visible</code> of a control. This method is intended to be used by |
| 265 |
* implementations of the method |
| 266 |
* {@link AbstractWidgetLCA#createResetHandlerCalls(String)}. |
| 267 |
* |
| 268 |
* @throws IOException |
| 269 |
*/ |
| 270 |
public static void resetVisible() throws IOException { |
| 271 |
JSWriter writer = JSWriter.getWriterForResetHandler(); |
| 272 |
// TODO [fappel]: check whether to use reset |
| 273 |
writer.set( JSConst.QX_FIELD_VISIBLE, true ); |
| 274 |
} |
| 275 |
|
| 276 |
/** |
| 277 |
* Determines whether the property <code>enabled</code> of the given control |
234 |
* Determines whether the property <code>enabled</code> of the given control |
| 278 |
* has changed during the processing of the current request and if so, writes |
235 |
* has changed during the processing of the current request and if so, writes |
| 279 |
* JavaScript code to the response that updates the client-side enabled |
236 |
* JavaScript code to the response that updates the client-side enabled |
|
Lines 291-308
Link Here
|
| 291 |
} |
248 |
} |
| 292 |
|
249 |
|
| 293 |
/** |
250 |
/** |
| 294 |
* Writes JavaScript code to the response that resets the property |
|
|
| 295 |
* <code>enabled</code> of a control. This method is intended to be used by |
| 296 |
* implementations of the method |
| 297 |
* {@link AbstractWidgetLCA#createResetHandlerCalls(String)}. |
| 298 |
* |
| 299 |
* @throws IOException |
| 300 |
*/ |
| 301 |
public static void resetEnabled() throws IOException { |
| 302 |
WidgetLCAUtil.resetEnabled(); |
| 303 |
} |
| 304 |
|
| 305 |
/** |
| 306 |
* Determines for all of the following properties of the specified control |
251 |
* Determines for all of the following properties of the specified control |
| 307 |
* whether the property has changed during the processing of the current |
252 |
* whether the property has changed during the processing of the current |
| 308 |
* request and if so, writes JavaScript code to the response that updates the |
253 |
* request and if so, writes JavaScript code to the response that updates the |
|
Lines 359-403
Link Here
|
| 359 |
} |
304 |
} |
| 360 |
|
305 |
|
| 361 |
/** |
306 |
/** |
| 362 |
* Writes JavaScript code to the response that resets the following properties |
|
|
| 363 |
* of a control. |
| 364 |
* <ul> |
| 365 |
* <li>bounds</li> |
| 366 |
* <li>z-index (except for Shells)</li> |
| 367 |
* <li>tab index</li> |
| 368 |
* <li>tool tip text</li> |
| 369 |
* <li>menu</li> |
| 370 |
* <li>visible</li> |
| 371 |
* <li>enabled</li> |
| 372 |
* <li>foreground</li> |
| 373 |
* <li>background</li> |
| 374 |
* <li>font</li> |
| 375 |
* <!--li>whether ControlListeners are registered</li> |
| 376 |
* <li>whether ActivateListeners are registered</li> |
| 377 |
* <li>whether FocusListeners are registered</li--> |
| 378 |
* </ul> |
| 379 |
* This method is intended to be used by implementations of the method |
| 380 |
* {@link AbstractWidgetLCA#createResetHandlerCalls(String)}. |
| 381 |
* |
| 382 |
* @throws IOException |
| 383 |
*/ |
| 384 |
public static void resetChanges() throws IOException { |
| 385 |
resetFocusListener(); |
| 386 |
// resetting Activation Listener is automatically done by JSWriter#dispose |
| 387 |
// TODO [rst] What about resetting Control- and FocusListener? document this |
| 388 |
resetMenu(); |
| 389 |
resetToolTip(); |
| 390 |
resetFont(); |
| 391 |
resetBackground(); |
| 392 |
resetForeground(); |
| 393 |
resetEnabled(); |
| 394 |
resetVisible(); |
| 395 |
resetTabIndex(); |
| 396 |
resetZIndex(); |
| 397 |
resetBounds(); |
| 398 |
} |
| 399 |
|
| 400 |
/** |
| 401 |
* Writes JavaScript code to the response that adds client-side resize |
307 |
* Writes JavaScript code to the response that adds client-side resize |
| 402 |
* listeners to a control. These listeners send notifications when the control |
308 |
* listeners to a control. These listeners send notifications when the control |
| 403 |
* is resized. |
309 |
* is resized. |
|
Lines 417-438
Link Here
|
| 417 |
} |
323 |
} |
| 418 |
|
324 |
|
| 419 |
/** |
325 |
/** |
| 420 |
* Writes JavaScript code to the response that removes the client-side resize |
|
|
| 421 |
* notification listeners from a control. |
| 422 |
* |
| 423 |
* @throws IOException |
| 424 |
*/ |
| 425 |
public static void resetResizeNotificator() |
| 426 |
throws IOException |
| 427 |
{ |
| 428 |
JSWriter writer = JSWriter.getWriterForResetHandler(); |
| 429 |
writer.removeListener( JSConst.QX_EVENT_CHANGE_WIDTH, |
| 430 |
JSConst.JS_WIDGET_RESIZED ); |
| 431 |
writer.removeListener( JSConst.QX_EVENT_CHANGE_HEIGHT, |
| 432 |
JSConst.JS_WIDGET_RESIZED ); |
| 433 |
} |
| 434 |
|
| 435 |
/** |
| 436 |
* Writes JavaScript code to the response that adds client-side move listeners |
326 |
* Writes JavaScript code to the response that adds client-side move listeners |
| 437 |
* to a control. These listeners send notifications when the control is moved. |
327 |
* to a control. These listeners send notifications when the control is moved. |
| 438 |
* @param control the control to add move notification listeners to |
328 |
* @param control the control to add move notification listeners to |
|
Lines 451-472
Link Here
|
| 451 |
} |
341 |
} |
| 452 |
|
342 |
|
| 453 |
/** |
343 |
/** |
| 454 |
* Writes JavaScript code to the response that removes the client-side move |
|
|
| 455 |
* notification listeners from a control. |
| 456 |
* |
| 457 |
* @throws IOException |
| 458 |
*/ |
| 459 |
public static void resetMoveNotificator() |
| 460 |
throws IOException |
| 461 |
{ |
| 462 |
JSWriter writer = JSWriter.getWriterForResetHandler(); |
| 463 |
writer.removeListener( JSConst.QX_EVENT_CHANGE_LOCATION_X, |
| 464 |
JSConst.JS_WIDGET_MOVED ); |
| 465 |
writer.removeListener( JSConst.QX_EVENT_CHANGE_LOCATION_Y, |
| 466 |
JSConst.JS_WIDGET_MOVED ); |
| 467 |
} |
| 468 |
|
| 469 |
/** |
| 470 |
* Determines whether the property <code>menu</code> of the given control |
344 |
* Determines whether the property <code>menu</code> of the given control |
| 471 |
* has changed during the processing of the current request and if so, writes |
345 |
* has changed during the processing of the current request and if so, writes |
| 472 |
* JavaScript code to the response that updates the client-side menu |
346 |
* JavaScript code to the response that updates the client-side menu |
|
Lines 480-497
Link Here
|
| 480 |
} |
354 |
} |
| 481 |
|
355 |
|
| 482 |
/** |
356 |
/** |
| 483 |
* Writes JavaScript code to the response that resets the property |
|
|
| 484 |
* <code>menu</code> of a control. This method is intended to be used by |
| 485 |
* implementations of the method |
| 486 |
* {@link AbstractWidgetLCA#createResetHandlerCalls(String)}. |
| 487 |
* |
| 488 |
* @throws IOException |
| 489 |
*/ |
| 490 |
public static void resetMenu() throws IOException { |
| 491 |
WidgetLCAUtil.resetMenu(); |
| 492 |
} |
| 493 |
|
| 494 |
/** |
| 495 |
* Determines whether the tool tip of the given control has changed during the |
357 |
* Determines whether the tool tip of the given control has changed during the |
| 496 |
* processing of the current request and if so, writes JavaScript code to the |
358 |
* processing of the current request and if so, writes JavaScript code to the |
| 497 |
* response that updates the client-side tool tip. |
359 |
* response that updates the client-side tool tip. |
|
Lines 506-522
Link Here
|
| 506 |
} |
368 |
} |
| 507 |
|
369 |
|
| 508 |
/** |
370 |
/** |
| 509 |
* Writes JavaScript code to the response that resets the tool tip of a |
|
|
| 510 |
* control. This method is intended to be used by implementations of the |
| 511 |
* method {@link AbstractWidgetLCA#createResetHandlerCalls(String)}. |
| 512 |
* |
| 513 |
* @throws IOException |
| 514 |
*/ |
| 515 |
public static void resetToolTip() throws IOException { |
| 516 |
WidgetLCAUtil.resetToolTip(); |
| 517 |
} |
| 518 |
|
| 519 |
/** |
| 520 |
* Determines whether the property <code>foreground</code> of the given |
371 |
* Determines whether the property <code>foreground</code> of the given |
| 521 |
* control has changed during the processing of the current request and if so, |
372 |
* control has changed during the processing of the current request and if so, |
| 522 |
* writes JavaScript code to the response that updates the client-side |
373 |
* writes JavaScript code to the response that updates the client-side |
|
Lines 535-552
Link Here
|
| 535 |
} |
386 |
} |
| 536 |
|
387 |
|
| 537 |
/** |
388 |
/** |
| 538 |
* Writes JavaScript code to the response that resets the property |
|
|
| 539 |
* <code>foreground</code> of a control. This method is intended to be used |
| 540 |
* by implementations of the method |
| 541 |
* {@link AbstractWidgetLCA#createResetHandlerCalls(String)}. |
| 542 |
* |
| 543 |
* @throws IOException |
| 544 |
*/ |
| 545 |
public static void resetForeground() throws IOException { |
| 546 |
WidgetLCAUtil.resetForeground(); |
| 547 |
} |
| 548 |
|
| 549 |
/** |
| 550 |
* Determines whether the property <code>background</code> of the given |
389 |
* Determines whether the property <code>background</code> of the given |
| 551 |
* control has changed during the processing of the current request and if so, |
390 |
* control has changed during the processing of the current request and if so, |
| 552 |
* writes JavaScript code to the response that updates the client-side |
391 |
* writes JavaScript code to the response that updates the client-side |
|
Lines 606-623
Link Here
|
| 606 |
} |
445 |
} |
| 607 |
|
446 |
|
| 608 |
/** |
447 |
/** |
| 609 |
* Writes JavaScript code to the response that resets the property |
|
|
| 610 |
* <code>background</code> of a control. This method is intended to be used |
| 611 |
* by implementations of the method |
| 612 |
* {@link AbstractWidgetLCA#createResetHandlerCalls(String)}. |
| 613 |
* |
| 614 |
* @throws IOException |
| 615 |
*/ |
| 616 |
public static void resetBackground() throws IOException { |
| 617 |
WidgetLCAUtil.resetBackground(); |
| 618 |
} |
| 619 |
|
| 620 |
/** |
| 621 |
* Checks the given control for common SWT style flags (e.g. |
448 |
* Checks the given control for common SWT style flags (e.g. |
| 622 |
* <code>SWT.BORDER</code>) and if present, writes code to pass the according |
449 |
* <code>SWT.BORDER</code>) and if present, writes code to pass the according |
| 623 |
* states to the client. |
450 |
* states to the client. |
|
Lines 632-650
Link Here
|
| 632 |
} |
459 |
} |
| 633 |
|
460 |
|
| 634 |
/** |
461 |
/** |
| 635 |
* Writes JavaScript code to the response that resets the style flags. |
|
|
| 636 |
* <p>This method is intended to be used by implementations of the method |
| 637 |
* {@link AbstractWidgetLCA#createResetHandlerCalls(String)}.</p> |
| 638 |
* |
| 639 |
* @throws IOException |
| 640 |
*/ |
| 641 |
public static void resetStyleFlags() throws IOException { |
| 642 |
JSWriter writer = JSWriter.getWriterForResetHandler(); |
| 643 |
writer.call( JSConst.QX_FUNC_REMOVE_STATE, PARAM_STYLE_BORDER ); |
| 644 |
writer.call( JSConst.QX_FUNC_REMOVE_STATE, PARAM_STYLE_FLAT ); |
| 645 |
} |
| 646 |
|
| 647 |
/** |
| 648 |
* Determines whether the property <code>font</code> of the given control |
462 |
* Determines whether the property <code>font</code> of the given control |
| 649 |
* has changed during the processing of the current request and if so, writes |
463 |
* has changed during the processing of the current request and if so, writes |
| 650 |
* JavaScript code to the response that updates the client-side font property. |
464 |
* JavaScript code to the response that updates the client-side font property. |
|
Lines 659-676
Link Here
|
| 659 |
WidgetLCAUtil.writeFont( control, newValue ); |
473 |
WidgetLCAUtil.writeFont( control, newValue ); |
| 660 |
} |
474 |
} |
| 661 |
|
475 |
|
| 662 |
/** |
|
|
| 663 |
* Writes JavaScript code to the response that resets the property |
| 664 |
* <code>font</code> of a control. This method is intended to be used by |
| 665 |
* implementations of the method |
| 666 |
* {@link AbstractWidgetLCA#createResetHandlerCalls(String)}. |
| 667 |
* |
| 668 |
* @throws IOException |
| 669 |
*/ |
| 670 |
public static void resetFont() throws IOException { |
| 671 |
WidgetLCAUtil.resetFont(); |
| 672 |
} |
| 673 |
|
| 674 |
static void writeCursor( final Control control ) throws IOException { |
476 |
static void writeCursor( final Control control ) throws IOException { |
| 675 |
Cursor newValue = control.getCursor(); |
477 |
Cursor newValue = control.getCursor(); |
| 676 |
if( WidgetLCAUtil.hasChanged( control, PROP_CURSOR, newValue, null ) ) { |
478 |
if( WidgetLCAUtil.hasChanged( control, PROP_CURSOR, newValue, null ) ) { |
|
Lines 684-694
Link Here
|
| 684 |
} |
486 |
} |
| 685 |
} |
487 |
} |
| 686 |
|
488 |
|
| 687 |
static void resetCursor() throws IOException { |
|
|
| 688 |
JSWriter writer = JSWriter.getWriterForResetHandler(); |
| 689 |
writer.reset( JSConst.QX_FIELD_CURSOR ); |
| 690 |
} |
| 691 |
|
| 692 |
public static void writeActivateListener( final Control control ) |
489 |
public static void writeActivateListener( final Control control ) |
| 693 |
throws IOException |
490 |
throws IOException |
| 694 |
{ |
491 |
{ |
|
Lines 745-758
Link Here
|
| 745 |
} |
542 |
} |
| 746 |
} |
543 |
} |
| 747 |
|
544 |
|
| 748 |
private static void resetFocusListener() throws IOException { |
|
|
| 749 |
JSWriter writer = JSWriter.getWriterForResetHandler(); |
| 750 |
writer.removeListener( FOCUS_GAINED_LISTENER_INFO.getEventType(), |
| 751 |
FOCUS_GAINED_LISTENER_INFO.getJSListener() ); |
| 752 |
writer.removeListener( FOCUS_LOST_LISTENER_INFO.getEventType(), |
| 753 |
FOCUS_LOST_LISTENER_INFO.getJSListener() ); |
| 754 |
} |
| 755 |
|
| 756 |
private static void writeMouseListener( final Control control ) |
545 |
private static void writeMouseListener( final Control control ) |
| 757 |
throws IOException |
546 |
throws IOException |
| 758 |
{ |
547 |
{ |
|
Lines 898-908
Link Here
|
| 898 |
} |
687 |
} |
| 899 |
} |
688 |
} |
| 900 |
|
689 |
|
| 901 |
private static void resetTabIndex() throws IOException { |
|
|
| 902 |
JSWriter writer = JSWriter.getWriterForResetHandler(); |
| 903 |
writer.reset( JSConst.QX_FIELD_TAB_INDEX ); |
| 904 |
} |
| 905 |
|
| 906 |
/** |
690 |
/** |
| 907 |
* Recursively computes the tab indices for all child controls of a given |
691 |
* Recursively computes the tab indices for all child controls of a given |
| 908 |
* composite and stores the resulting values in the control adapters. |
692 |
* composite and stores the resulting values in the control adapters. |
|
Lines 1359-1362
Link Here
|
| 1359 |
} |
1143 |
} |
| 1360 |
return result; |
1144 |
return result; |
| 1361 |
} |
1145 |
} |
|
|
1146 |
|
| 1147 |
|
| 1148 |
///////////////////////////////////// |
| 1149 |
// deprecated pooling-related methods |
| 1150 |
|
| 1151 |
/** |
| 1152 |
* Writes JavaScript code to the response that resets the bounds of a control. |
| 1153 |
* This method is intended to be used by implementations of the method |
| 1154 |
* {@link AbstractWidgetLCA#createResetHandlerCalls(String)}. |
| 1155 |
* |
| 1156 |
* @throws IOException |
| 1157 |
* @deprecated As of 1.3, server-side widget pooling is no longer required. |
| 1158 |
* This method does nothing. |
| 1159 |
*/ |
| 1160 |
public static void resetBounds() throws IOException { |
| 1161 |
} |
| 1162 |
|
| 1163 |
/** |
| 1164 |
* Writes JavaScript code to the response that resets the z-index property of |
| 1165 |
* a control. This method is intended to be used by implementations of the |
| 1166 |
* method {@link AbstractWidgetLCA#createResetHandlerCalls(String)}. |
| 1167 |
* |
| 1168 |
* @throws IOException |
| 1169 |
* @deprecated As of 1.3, server-side widget pooling is no longer required. |
| 1170 |
* This method does nothing. |
| 1171 |
*/ |
| 1172 |
public static void resetZIndex() throws IOException { |
| 1173 |
} |
| 1174 |
|
| 1175 |
/** |
| 1176 |
* Writes JavaScript code to the response that resets the property |
| 1177 |
* <code>visible</code> of a control. This method is intended to be used by |
| 1178 |
* implementations of the method |
| 1179 |
* {@link AbstractWidgetLCA#createResetHandlerCalls(String)}. |
| 1180 |
* |
| 1181 |
* @throws IOException |
| 1182 |
* @deprecated As of 1.3, server-side widget pooling is no longer required. |
| 1183 |
* This method does nothing. |
| 1184 |
*/ |
| 1185 |
public static void resetVisible() throws IOException { |
| 1186 |
} |
| 1187 |
|
| 1188 |
/** |
| 1189 |
* Writes JavaScript code to the response that resets the property |
| 1190 |
* <code>enabled</code> of a control. This method is intended to be used by |
| 1191 |
* implementations of the method |
| 1192 |
* {@link AbstractWidgetLCA#createResetHandlerCalls(String)}. |
| 1193 |
* |
| 1194 |
* @throws IOException |
| 1195 |
* @deprecated As of 1.3, server-side widget pooling is no longer required. |
| 1196 |
* This method does nothing. |
| 1197 |
*/ |
| 1198 |
public static void resetEnabled() throws IOException { |
| 1199 |
} |
| 1200 |
|
| 1201 |
/** |
| 1202 |
* Writes JavaScript code to the response that resets the following properties |
| 1203 |
* of a control. |
| 1204 |
* <ul> |
| 1205 |
* <li>bounds</li> |
| 1206 |
* <li>z-index (except for Shells)</li> |
| 1207 |
* <li>tab index</li> |
| 1208 |
* <li>tool tip text</li> |
| 1209 |
* <li>menu</li> |
| 1210 |
* <li>visible</li> |
| 1211 |
* <li>enabled</li> |
| 1212 |
* <li>foreground</li> |
| 1213 |
* <li>background</li> |
| 1214 |
* <li>font</li> |
| 1215 |
* <!--li>whether ControlListeners are registered</li> |
| 1216 |
* <li>whether ActivateListeners are registered</li> |
| 1217 |
* <li>whether FocusListeners are registered</li--> |
| 1218 |
* </ul> |
| 1219 |
* This method is intended to be used by implementations of the method |
| 1220 |
* {@link AbstractWidgetLCA#createResetHandlerCalls(String)}. |
| 1221 |
* |
| 1222 |
* @throws IOException |
| 1223 |
* @deprecated As of 1.3, server-side widget pooling is no longer required. |
| 1224 |
* This method does nothing. |
| 1225 |
*/ |
| 1226 |
public static void resetChanges() throws IOException { |
| 1227 |
} |
| 1228 |
|
| 1229 |
/** |
| 1230 |
* Writes JavaScript code to the response that removes the client-side resize |
| 1231 |
* notification listeners from a control. |
| 1232 |
* |
| 1233 |
* @throws IOException |
| 1234 |
* @deprecated As of 1.3, server-side widget pooling is no longer required. |
| 1235 |
* This method does nothing. |
| 1236 |
*/ |
| 1237 |
public static void resetResizeNotificator() |
| 1238 |
throws IOException |
| 1239 |
{ |
| 1240 |
} |
| 1241 |
|
| 1242 |
/** |
| 1243 |
* Writes JavaScript code to the response that removes the client-side move |
| 1244 |
* notification listeners from a control. |
| 1245 |
* |
| 1246 |
* @throws IOException |
| 1247 |
* @deprecated As of 1.3, server-side widget pooling is no longer required. |
| 1248 |
* This method does nothing. |
| 1249 |
*/ |
| 1250 |
public static void resetMoveNotificator() |
| 1251 |
throws IOException |
| 1252 |
{ |
| 1253 |
} |
| 1254 |
|
| 1255 |
/** |
| 1256 |
* Writes JavaScript code to the response that resets the property |
| 1257 |
* <code>menu</code> of a control. This method is intended to be used by |
| 1258 |
* implementations of the method |
| 1259 |
* {@link AbstractWidgetLCA#createResetHandlerCalls(String)}. |
| 1260 |
* |
| 1261 |
* @throws IOException |
| 1262 |
* @deprecated As of 1.3, server-side widget pooling is no longer required. |
| 1263 |
* This method does nothing. |
| 1264 |
*/ |
| 1265 |
public static void resetMenu() throws IOException { |
| 1266 |
} |
| 1267 |
|
| 1268 |
/** |
| 1269 |
* Writes JavaScript code to the response that resets the tool tip of a |
| 1270 |
* control. This method is intended to be used by implementations of the |
| 1271 |
* method {@link AbstractWidgetLCA#createResetHandlerCalls(String)}. |
| 1272 |
* |
| 1273 |
* @throws IOException |
| 1274 |
* @deprecated As of 1.3, server-side widget pooling is no longer required. |
| 1275 |
* This method does nothing. |
| 1276 |
*/ |
| 1277 |
public static void resetToolTip() throws IOException { |
| 1278 |
} |
| 1279 |
|
| 1280 |
/** |
| 1281 |
* Writes JavaScript code to the response that resets the property |
| 1282 |
* <code>foreground</code> of a control. This method is intended to be used |
| 1283 |
* by implementations of the method |
| 1284 |
* {@link AbstractWidgetLCA#createResetHandlerCalls(String)}. |
| 1285 |
* |
| 1286 |
* @throws IOException |
| 1287 |
* @deprecated As of 1.3, server-side widget pooling is no longer required. |
| 1288 |
* This method does nothing. |
| 1289 |
*/ |
| 1290 |
public static void resetForeground() throws IOException { |
| 1291 |
} |
| 1292 |
|
| 1293 |
/** |
| 1294 |
* Writes JavaScript code to the response that resets the property |
| 1295 |
* <code>background</code> of a control. This method is intended to be used |
| 1296 |
* by implementations of the method |
| 1297 |
* {@link AbstractWidgetLCA#createResetHandlerCalls(String)}. |
| 1298 |
* |
| 1299 |
* @throws IOException |
| 1300 |
* @deprecated As of 1.3, server-side widget pooling is no longer required. |
| 1301 |
* This method does nothing. |
| 1302 |
*/ |
| 1303 |
public static void resetBackground() throws IOException { |
| 1304 |
} |
| 1305 |
|
| 1306 |
/** |
| 1307 |
* Writes JavaScript code to the response that resets the style flags. |
| 1308 |
* <p>This method is intended to be used by implementations of the method |
| 1309 |
* {@link AbstractWidgetLCA#createResetHandlerCalls(String)}.</p> |
| 1310 |
* |
| 1311 |
* @throws IOException |
| 1312 |
* @deprecated As of 1.3, server-side widget pooling is no longer required. |
| 1313 |
* This method does nothing. |
| 1314 |
*/ |
| 1315 |
public static void resetStyleFlags() throws IOException { |
| 1316 |
} |
| 1317 |
|
| 1318 |
/** |
| 1319 |
* Writes JavaScript code to the response that resets the property |
| 1320 |
* <code>font</code> of a control. This method is intended to be used by |
| 1321 |
* implementations of the method |
| 1322 |
* {@link AbstractWidgetLCA#createResetHandlerCalls(String)}. |
| 1323 |
* |
| 1324 |
* @throws IOException |
| 1325 |
* @deprecated As of 1.3, server-side widget pooling is no longer required. |
| 1326 |
* This method does nothing. |
| 1327 |
*/ |
| 1328 |
public static void resetFont() throws IOException { |
| 1329 |
} |
| 1362 |
} |
1330 |
} |