com.ontimize.util.gis.client.gui.panels.actions
Class GoToGoogleAction

java.lang.Object
  extended by com.ontimize.util.gis.client.gui.panels.actions.GoToGoogleAction
All Implemented Interfaces:
IPopupMenuAction, java.awt.event.ActionListener, java.util.EventListener

public class GoToGoogleAction
extends java.lang.Object
implements IPopupMenuAction

Popup menu panel action. Allows the user to center the map panel searching the location using a google maps geolocation search.

Code:

<com.ontimize.util.gis.client.gui.panels.components.PopupMenuItem
     attr="POPUP_MENU_ITEM_GO_TO_ADDRESS"
     img="com/ontimize/util/gis/client/gui/images/bullseye.png"	
     actionClass="com.ontimize.util.gis.client.gui.panels.actions.GoToGoogleAction"/>


Field Summary
protected  GoToGooglePanel gotoGooglePanel
           
protected  boolean gotoVisible
           
protected  IGisViewer viewer
           
 
Constructor Summary
GoToGoogleAction()
           
GoToGoogleAction(IGisViewer viewer)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void setParameter(java.lang.String name, java.lang.Object value)
          Set a parameter value for this action.
 void setParameters(java.util.Hashtable<java.lang.String,java.lang.Object> params)
          Set a group of parameters stored in a hashtable in [name, value] pairs.
 void setParentItem(PopupMenuItem popupItem)
          Set action parent item
 void setResourceBundle(java.util.ResourceBundle res)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

viewer

protected IGisViewer viewer

gotoGooglePanel

protected GoToGooglePanel gotoGooglePanel

gotoVisible

protected boolean gotoVisible
Constructor Detail

GoToGoogleAction

public GoToGoogleAction()

GoToGoogleAction

public GoToGoogleAction(IGisViewer viewer)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

setParameter

public void setParameter(java.lang.String name,
                         java.lang.Object value)
Description copied from interface: IPopupMenuAction
Set a parameter value for this action. The definition of this parameter in the xml code is using the FormAttribute element

Specified by:
setParameter in interface IPopupMenuAction
Parameters:
name - Parameter name
value - Parameter value

setParameters

public void setParameters(java.util.Hashtable<java.lang.String,java.lang.Object> params)
Description copied from interface: IPopupMenuAction
Set a group of parameters stored in a hashtable in [name, value] pairs.

Specified by:
setParameters in interface IPopupMenuAction
Parameters:
params - Hashtable containing the popup menu action configuration parameters

setResourceBundle

public void setResourceBundle(java.util.ResourceBundle res)
Specified by:
setResourceBundle in interface IPopupMenuAction

setParentItem

public void setParentItem(PopupMenuItem popupItem)
Description copied from interface: IPopupMenuAction
Set action parent item

Specified by:
setParentItem in interface IPopupMenuAction
Parameters:
popupItem - Parent item