apollo.gui
Class NonWindowControlledObject

java.lang.Object
  extended by apollo.gui.NonWindowControlledObject
All Implemented Interfaces:
ControlledObjectI, java.io.Serializable, java.util.EventListener
Direct Known Subclasses:
ControllerDebugListener

public class NonWindowControlledObject
extends java.lang.Object
implements ControlledObjectI, java.util.EventListener

This class was solely being used by AbstractLazySequence, and actually is no longer as it didnt seem to serve any real purpose - it added ALS as listener to controller but doesnt actually listen for any event - ControlledObjectI is used by Controller solely for its window - and there is no window here - so im thinking this class could get tossed - steve?

See Also:
Serialized Form

Field Summary
protected  Controller controller
           
 
Constructor Summary
NonWindowControlledObject(Controller controller)
           
 
Method Summary
 Controller getController()
          Gets the Controller for the object
 java.lang.Object getControllerWindow()
          Shouldnt this return Window - would we ever want a non-window?
 boolean needsAutoRemoval()
          If getControllerWindow is non null, and needsAutoRemoval is true then Controller will automatically remove the ControlledObjectI as a listener when its ControllerWindow is closing.
 void removeFromControllerListeners()
          This has to be called when the object is no longer relevant or this will remain as a lingering ref/mem leak via contollers listeners
 void setController(Controller controller)
          Sets the Controller for the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controller

protected Controller controller
Constructor Detail

NonWindowControlledObject

public NonWindowControlledObject(Controller controller)
Method Detail

setController

public void setController(Controller controller)
Description copied from interface: ControlledObjectI
Sets the Controller for the object

Specified by:
setController in interface ControlledObjectI

getController

public Controller getController()
Description copied from interface: ControlledObjectI
Gets the Controller for the object

Specified by:
getController in interface ControlledObjectI

getControllerWindow

public java.lang.Object getControllerWindow()
Description copied from interface: ControlledObjectI
Shouldnt this return Window - would we ever want a non-window?

Specified by:
getControllerWindow in interface ControlledObjectI

needsAutoRemoval

public boolean needsAutoRemoval()
Description copied from interface: ControlledObjectI
If getControllerWindow is non null, and needsAutoRemoval is true then Controller will automatically remove the ControlledObjectI as a listener when its ControllerWindow is closing. If getControllerWindow is null needsAutoRemoval is meaningless. Rename this removeAsListenerOnWindowClose?

Specified by:
needsAutoRemoval in interface ControlledObjectI

removeFromControllerListeners

public void removeFromControllerListeners()
This has to be called when the object is no longer relevant or this will remain as a lingering ref/mem leak via contollers listeners