org.geotools.event
Interface GTRoot

All Superinterfaces:
GTComponent
All Known Implementing Classes:
AbstractGTRoot

public interface GTRoot
extends GTComponent

Indicates the "root" of a Geotools data structure with event notification.

Several of the GeoTools objects are produced in reference to specifications, in particular XML based specifications. Often we try and match the same abstractions present in a specification like SLD or Filter. But rather then make use of pure Java Beans, and make user interface code responsible for managing a host of listeners we are providing a single set of listeners located at the object matching the document base.

Author:
Jody Garnett, Refractions Research

Field Summary
static GTRoot NO_PARENT
           
 
Method Summary
 void addListener(GTListener listener)
          Adds a listener for GTEvents
 void changed(GTDelta delta)
          Since this is the "root" of the tree, please fire event off to the listeners.
 GTComponent getParent()
          Should not be called, will return a "NullObject" - NO_PARENT.
 void removed(GTDelta delta)
          Since this is the "root" of the tree, please fire event off to the listeners.
 void removeListener(GTListener listener)
          Removes a previously installed GTListener
 
Methods inherited from interface org.geotools.event.GTComponent
getNote, setNote
 

Field Detail

NO_PARENT

public static final GTRoot NO_PARENT
Method Detail

getParent

public GTComponent getParent()
Should not be called, will return a "NullObject" - NO_PARENT.

Specified by:
getParent in interface GTComponent
Returns:
NO_PARENT

changed

public void changed(GTDelta delta)
Since this is the "root" of the tree, please fire event off to the listeners.

Specified by:
changed in interface GTComponent
Parameters:
delta - Delta describing change

removed

public void removed(GTDelta delta)
Since this is the "root" of the tree, please fire event off to the listeners.

Specified by:
removed in interface GTComponent
Parameters:
delta - Delta describing change

addListener

public void addListener(GTListener listener)
Adds a listener for GTEvents

Parameters:
listener - Listener to change events

removeListener

public void removeListener(GTListener listener)
Removes a previously installed GTListener

Parameters:
listener - Listener to change events


Copyright © GeoTools. All Rights Reserved.