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

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

public class ShowLegendAction
extends java.lang.Object
implements IPopupMenuAction

Popup menu panel action. Shows a layer information panel generated automatically.

Code:

<com.ontimize.util.gis.client.gui.panels.components.PopupMenuItem
     attr="POPUP_MENU_ITEM_SHOW_LEGEND"
     img="com/ontimize/util/gis/client/gui/images/legends.png"
     actionClass="com.ontimize.util.gis.client.gui.panels.actions.ShowLegendAction"/>


Field Summary
protected  LegendPanel legend
           
protected  boolean legendVisible
           
protected  IGisViewer viewer
           
 
Constructor Summary
ShowLegendAction()
           
ShowLegendAction(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

legend

protected LegendPanel legend

legendVisible

protected boolean legendVisible
Constructor Detail

ShowLegendAction

public ShowLegendAction()

ShowLegendAction

public ShowLegendAction(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