com.esri.arcgis.controls
Class ITOCBuddyEventsActiveViewReplacedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.esri.arcgis.controls.ITOCBuddyEventsActiveViewReplacedEvent
All Implemented Interfaces:
Serializable

public class ITOCBuddyEventsActiveViewReplacedEvent
extends EventObject

Description

The ActiveViewReplaced event is triggered when the ActiveView of the ITOCControl::Buddy is replaced.

For example, when a new map document is loaded into the MapControl the IActiveView object contained within the MapControl gets replaced. If the MapControl is 'buddied' to a TOCControl, the MapControl fires the ITOCBuddyEvents::ActiveViewReplaced event to the TOCControl. The TOCControl stops listening to events on the 'old' IActiveView object and starts listening to events on the 'new' IActiveView object contained within the MapControl. This ensures the TOCControl automatically reflects the maps, layers and symbology of the Buddy.

Product Availability

Available with ArcGIS Engine.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ITOCBuddyEventsActiveViewReplacedEvent(Object source)
           
 
Method Summary
 IActiveView getPNewActiveView()
           
 void init(IActiveView pNewActiveView)
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ITOCBuddyEventsActiveViewReplacedEvent

public ITOCBuddyEventsActiveViewReplacedEvent(Object source)
Method Detail

init

public void init(IActiveView pNewActiveView)

getPNewActiveView

public final IActiveView getPNewActiveView()