Remove all but the last implementation of View#terminate

This commit is contained in:
Chris Beams 2014-11-22 20:58:43 +01:00
parent 22443900a9
commit 97817aa724
No known key found for this signature in database
GPG key ID: 3D214F8F5BC5ED73
4 changed files with 0 additions and 21 deletions

View file

@ -92,12 +92,4 @@ public abstract class ActivatableView<M extends Activatable> extends View<M> imp
protected void doDeactivate() { protected void doDeactivate() {
} }
/**
* In caching controllers the terminate calls the deactivate method.
*/
@Override
public void terminate() {
model.deactivate();
}
} }

View file

@ -71,12 +71,7 @@ public abstract class View<M> implements Initializable {
} }
} }
/**
* Called automatically when view gets removed. Used for house keeping (removing listeners,
* stopping timers or animations,...).
*/
public void terminate() { public void terminate() {
log.trace("Lifecycle: terminate " + this.getClass().getSimpleName());
} }
/** /**

View file

@ -116,13 +116,6 @@ public class AccountView extends ActivatableView {
((TabPane) root).getSelectionModel().selectedItemProperty().removeListener(tabChangeListener); ((TabPane) root).getSelectionModel().selectedItemProperty().removeListener(tabChangeListener);
} }
@SuppressWarnings("EmptyMethod")
@Override
public void terminate() {
super.terminate();
}
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
// Navigation // Navigation
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////

View file

@ -142,7 +142,6 @@ public class AccountSetupView extends View implements MultiStepNavigation {
@Override @Override
public void terminate() { public void terminate() {
super.terminate();
navigation.removeListener(listener); navigation.removeListener(listener);
} }