ARoad0.Gui2
Interface BaseListener

All Superinterfaces:
java.util.EventListener, MVC_Controller, java.beans.PropertyChangeListener
All Known Subinterfaces:
TreeBaseListener
All Known Implementing Classes:
ACSTreeBaseListenerImpl, GraphicViewBaseListenerImpl, ISTreeBaseListenerImpl, ViewTreeBaseListenerImpl

public interface BaseListener
extends MVC_Controller, java.beans.PropertyChangeListener

This interface is responsible for listening the events fired by one main BaseObject (the main source) as ACSRun and ViewInBase -and also the events fired by the main source objects- for updating the unique graphic (tree or diagram) which is associated to this BaseListener and which displays the main source objects.

Each event source is registered only one time. The main source opening and closing operations are not implied, since these operations are handled in Gui1/Gui2 and the gDMak classes ActionClose and ActionOpen.


Method Summary
 void finalizeForUser()
          Unregister the instance as a listener for all registered sources.
 ImmutableName getEorMainEventSource()
          Get the main event source associated to the instance in its construction.
 int hashCode()
          HashCode of the instance.
 boolean setListenEvents(boolean _listen)
          To listen or not the events in propertyChange().
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Method Detail

getEorMainEventSource

ImmutableName getEorMainEventSource()
Get the main event source associated to the instance in its construction. It is an ACS or a view. See the Copyright.

Returns:
name of the main source for PropertyChangeEvents. May be null.

setListenEvents

boolean setListenEvents(boolean _listen)
To listen or not the events in propertyChange().

Parameters:
_listen - true to listen the events in this instance, through propertyChange()
Returns:
true if the previous value was different to this argument

finalizeForUser

void finalizeForUser()
Unregister the instance as a listener for all registered sources.


hashCode

int hashCode()
HashCode of the instance. It is used by the graphic manager to remove a BaseListener.

Overrides:
hashCode in class java.lang.Object
Returns:
int