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

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

public class ForceRefreshAction
extends java.lang.Object
implements IPopupMenuAction

Popup menu panel action. Forces the refresh of the map data by deleting
the data shown in map panel.

Form code:

<com.ontimize.util.gis.client.gui.panels.components.PopupMenuItem
     attr="POPUP_MENU_ITEM_FORCE_REFRESH"
     img="com/ontimize/util/gis/client/gui/images/refresh.png"
     actionClass="com.ontimize.util.gis.client.gui.panels.actions.ForceRefreshAction"/>


Field Summary
protected  IGisViewer viewer
           
 
Constructor Summary
ForceRefreshAction()
           
ForceRefreshAction(IGisViewer viewer)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void setParameter(java.lang.String paramName, java.lang.Object paramValue)
          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
Constructor Detail

ForceRefreshAction

public ForceRefreshAction()

ForceRefreshAction

public ForceRefreshAction(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 paramName,
                         java.lang.Object paramValue)
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:
paramName - Parameter name
paramValue - 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