com.esri.arcgis.controls
Class IToolbarControlEventsOnBuddyChangedEvent

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

public class IToolbarControlEventsOnBuddyChangedEvent
extends EventObject

Description

Fires when the SetBuddyControl method is used.

Any custom commands that are added to the ToolbarControl must be written in such a way as to ask the ToolbarControl for its Buddy every time an operation is requested to ensure they are always working with the current Buddy. Custom commands need to do one of two things:

ICommand::OnCreate will only get called once for each command that is added to the ToolbarControl the first time the Buddy is set. Using the SetBuddyControl method to change the buddy a subsequent time will not call ICommand::OnCreate, but will fire the OnBuddyChanged event.

Product Availability

Available with ArcGIS Engine.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
IToolbarControlEventsOnBuddyChangedEvent(Object source)
           
 
Method Summary
 void init()
           
 
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

IToolbarControlEventsOnBuddyChangedEvent

public IToolbarControlEventsOnBuddyChangedEvent(Object source)
Method Detail

init

public void init()