com.ontimize.util.gis.client.interfaces
Interface IGisViewerOnMouseClickAction

All Known Implementing Classes:
OnMouseClickPrintlnData, OnMouseClickShowDetailForm

public interface IGisViewerOnMouseClickAction

Interface for the onMouseClick action classes. The class must hace
a costructor with a Hashtable as main parameter in order to receive the
configured attributes on the xml layer definition.


Field Summary
static java.lang.String PARAMETER_DETAIL_FORM
           
static java.lang.String PARAMETER_FORM_MANAGER
           
static java.lang.String PARAMETER_PRELOAD_FORM
           
static java.lang.String XML_ACTION_CLASS
           
 
Method Summary
 boolean doAction(java.lang.Object data, IGisViewer gisViewer, java.awt.event.MouseEvent ev)
          Action enabling method.
 java.util.Hashtable<java.lang.String,java.lang.Object> getInitParams()
          Get the configuration parameters for the current gis viewer listener
 void undoAction(IGisViewer gisViewer)
          Action disabling method
 

Field Detail

XML_ACTION_CLASS

static final java.lang.String XML_ACTION_CLASS
See Also:
Constant Field Values

PARAMETER_FORM_MANAGER

static final java.lang.String PARAMETER_FORM_MANAGER
See Also:
Constant Field Values

PARAMETER_DETAIL_FORM

static final java.lang.String PARAMETER_DETAIL_FORM
See Also:
Constant Field Values

PARAMETER_PRELOAD_FORM

static final java.lang.String PARAMETER_PRELOAD_FORM
See Also:
Constant Field Values
Method Detail

doAction

boolean doAction(java.lang.Object data,
                 IGisViewer gisViewer,
                 java.awt.event.MouseEvent ev)
Action enabling method. The class must validate the data in order to run the implemented action.
This method is called when the user clicks over an element of the current layer

Parameters:
data - Highlighted element data
gisViewer - Gis viewer reference
ev - event with the actual cursor state and position
Returns:
action performed

undoAction

void undoAction(IGisViewer gisViewer)
Action disabling method

Parameters:
gisViewer - Gis viewer reference

getInitParams

java.util.Hashtable<java.lang.String,java.lang.Object> getInitParams()
Get the configuration parameters for the current gis viewer listener

Returns:
Configuration parameters