deactivate method
void
deactivate()
inherited
A public interface for object deactivation.
If the state is Active, the method calls dispose and sets the state to
Deactivated.
Implementation
void deactivate() {
if (isActive()) {
dispose();
setDeactivated();
}
}