|
@@ -402,7 +402,6 @@ public abstract class FrameContainer {
|
402
|
402
|
* <p>
|
403
|
403
|
* Frame containers must perform the following actions in this order:
|
404
|
404
|
* <ol>
|
405
|
|
- * <li>Make the window non-visible (so it appears 'closed' to the user)</li>
|
406
|
405
|
* <li>Remove any callbacks or listeners (events should not be processed
|
407
|
406
|
* once a window has been requested to close)</li>
|
408
|
407
|
* <li>Trigger any actions necessary (terminating any TCP connections,
|
|
@@ -412,27 +411,13 @@ public abstract class FrameContainer {
|
412
|
411
|
* <li>Inform any parents that the window is closing (this includes
|
413
|
412
|
* unregistering the window with any specific managers, or from the
|
414
|
413
|
* parent windows if they track children)</li>
|
415
|
|
- * <li>Remove the window from the window manager (by calling
|
416
|
|
- * {@link WindowManager#removeWindow(com.dmdirc.FrameContainer)}</li>
|
417
|
414
|
* </ol>
|
418
|
|
- * <p>
|
419
|
|
- * <strong>NB:</strong> As of DMDirc 0.6.5, points 1 and 6 (making windows
|
420
|
|
- * non-visible and removing the window from the window manager) are handled
|
421
|
|
- * by the caller of this method, and should <strong>not</strong> be
|
422
|
|
- * implemented by subclasses.
|
423
|
|
- * </p>
|
424
|
|
- * <p>
|
425
|
|
- * While resources may be relinquished in step three, references MUST NOT
|
426
|
|
- * be removed yet. That is, if a window holds a resource, the resource may
|
427
|
|
- * be closed, but the relevant object MUST still be available for
|
428
|
|
- * interrogation at the end of this method.
|
429
|
|
- * <p>
|
430
|
|
- * This behaviour is required so that parties receiving windowDeleted events
|
431
|
|
- * from the WindowManager may inspect the closing window and perform actions
|
432
|
|
- * on its frame, parser, etc. The resources should be completely freed in
|
433
|
|
- * the {@link #windowClosed()} method.
|
|
415
|
+ *
|
|
416
|
+ * @deprecated Clearing up should be performed in the {@link #close()} method.
|
434
|
417
|
*/
|
435
|
|
- protected abstract void windowClosing();
|
|
418
|
+ @Deprecated
|
|
419
|
+ protected void windowClosing() {
|
|
420
|
+ }
|
436
|
421
|
|
437
|
422
|
/**
|
438
|
423
|
* Invoked when our window has been closed.
|
|
@@ -440,8 +425,12 @@ public abstract class FrameContainer {
|
440
|
425
|
* At this point, all interested parties have been told that the window
|
441
|
426
|
* has been closed, and therefore any references to frames or other
|
442
|
427
|
* resources may be completely freed.
|
|
428
|
+ *
|
|
429
|
+ * @deprecated Clearing up should be performed in the {@link #close()} method.
|
443
|
430
|
*/
|
444
|
|
- public abstract void windowClosed();
|
|
431
|
+ @Deprecated
|
|
432
|
+ public void windowClosed() {
|
|
433
|
+ }
|
445
|
434
|
|
446
|
435
|
/**
|
447
|
436
|
* Adds a line to this container's window. If the window is null for some
|