| MGDoubleClickObjectObserver.onDoubleClickObject |
|
public abstract boolean onDoubleClickObject(MGMapObject obj)
The double-click observer event method. This event is fired when the user double clicks on a map feature.
This topic describes this event for Plug-In and Java Edition only. For ActiveX Control, see onDoubleClickObject.
Plug-In and Java Edition only
obj - The MGMapObject map feature that was double-clicked.
boolean - Returns True if the event is completely handled in this method (i.e., no default action is required); otherwise, returns False.
none
To handle this event from the Plug-In or Java Edition, a Java object that implements the MGDoubleClickObjectObserver interface must be established with a call to the setDoubleClickObserver method. The observer Java object should include the following:
<class_definition> implements MGDoubleClickObjectObserver
{
// ...
public boolean onDoubleClickObject(MGMapObject obj)
{
// event handling code here...
// Return True if event is handled by this function;
// False for default handling by Viewer
}
// ...
}
The simplest way to include the observer object in a Web page is to implement it as an applet. See Advanced Examples for a fully functional observer object that supports all of the observer interfaces by forwarding the events back to JavaScript functions that have identical semantics to the ActiveX Control event handlers.
getDoubleClickObserver, setDoubleClickObserver, DoubleClickHandled