TPTP 4.2.0 Platform Project
Internal API Specification

org.eclipse.hyades.trace.ui.internal.util
Class AbstractChangeable

java.lang.Object
  extended byorg.eclipse.hyades.trace.ui.internal.util.AbstractChangeable
Direct Known Subclasses:
AgentDiscovererConfiguration.AgentDiscovererConfPage, ByteCodeSelectionUI, DoubleCTree, InstrumentFiltersUI, LaunchProcessUI, TraceFileUI, TraceHostUI, TraceLocationUI, TraceProfileCollectionsUI, TraceProfileFiltersUI, TraceProfileOptionsUI, TraceProfileOverviewUI, TraceProfileUI

public abstract class AbstractChangeable
extends java.lang.Object

Provides listener capabilities to subclasses. This is used by the Trace__UI classes in order for the launch configuration tabs to be notified when the UI has changed. Whenever any of the values change, changed() should be called.


Constructor Summary
AbstractChangeable()
           
 
Method Summary
 void addListener(org.eclipse.swt.widgets.Listener l)
          Adds a Listener to be notified whenever this instance changes.
protected  void changed()
          Subclasses should call this whenever their values change, to signal any Listeners on this instance.
 void removeListener(org.eclipse.swt.widgets.Listener l)
          Removes the given Listener from the list of Listeners to be notified when this instance changes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractChangeable

public AbstractChangeable()
Method Detail

addListener

public void addListener(org.eclipse.swt.widgets.Listener l)
Adds a Listener to be notified whenever this instance changes. A default Event is fired.

Parameters:
l - The Listener to add.

removeListener

public void removeListener(org.eclipse.swt.widgets.Listener l)
Removes the given Listener from the list of Listeners to be notified when this instance changes.

Parameters:
l - The Listener to add.

changed

protected void changed()
Subclasses should call this whenever their values change, to signal any Listeners on this instance.


TPTP 4.2.0 Platform Project
Internal API Specification