org.oddjob
Interface Structural

All Known Subinterfaces:
DomainNode
All Known Implementing Classes:
AndState, ArchiveBrowserJob, ArchiveJob, CascadeJob, ChildHelper, EqualsState, ForEachJob, GrabJob, IfJob, JMXClientJob, JMXServiceJob, JobFolder, JoinJob, LoggerExplorer, LoggerNode, MegaBeanBus, MultiExplorerLauncher, Oddjob, OddjobPanel, OrState, ParallelJob, RepeatJob, Resets, Retry, RunJob, ScheduleBase, SequentialJob, ServerMainBean, SimpleDomainNode, SimultaneousStructural, StateReflector, StructuralJob, Timer, TimerBase, Trigger

public interface Structural

A class which implements this interface will inform listeners when it's structure changes. A structural change is when a child component is added or removed from the implementing class. A new listener must receive add notifications for all existing children as there is no other way to determine the existing structure of an implementing class.

Author:
Rob Gordon

Method Summary
 void addStructuralListener(StructuralListener listener)
          Add a listener.
 void removeStructuralListener(StructuralListener listener)
          Remove a listener.
 

Method Detail

addStructuralListener

void addStructuralListener(StructuralListener listener)
Add a listener. The listener will immediately receive add notifications for all existing children.

Parameters:
listener - The listener.

removeStructuralListener

void removeStructuralListener(StructuralListener listener)
Remove a listener.

Parameters:
listener - The listener.