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

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

public class SelectByDistanceAction
extends java.lang.Object
implements IPopupMenuAction, SelectionChangeListener


Field Summary
protected  javax.swing.JButton cancelButton
           
protected  java.lang.String cancelButtonText
           
protected  javax.swing.JDialog coordDialog
           
protected  double distance
           
protected  javax.swing.JLabel distanceLabel
           
protected static java.lang.String distanceLabelText
           
protected  com.ontimize.gui.field.RealDataField distanceTextField
           
protected  javax.swing.JButton okButton
           
protected  java.lang.String okButtonText
           
protected  javax.swing.JPanel outerPanel
           
protected  javax.swing.JPanel panel
           
protected  PopupMenuItem popupItem
           
protected  int posX
           
protected  int posY
           
protected  IGisViewer viewer
           
 
Constructor Summary
SelectByDistanceAction()
           
SelectByDistanceAction(IGisViewer viewer)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
protected  void buildDialog()
           
protected  void cancelButton_actionPerformed(java.awt.event.ActionEvent e)
           
protected  void okButton_actionPerformed(java.awt.event.ActionEvent e)
           
 void selectionChanged(SelectionChangeEvent event)
          Invoked when the actual selection changes
 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

distanceLabelText

protected static java.lang.String distanceLabelText

viewer

protected IGisViewer viewer

distance

protected double distance

posX

protected int posX

posY

protected int posY

coordDialog

protected javax.swing.JDialog coordDialog

outerPanel

protected javax.swing.JPanel outerPanel

panel

protected javax.swing.JPanel panel

distanceLabel

protected javax.swing.JLabel distanceLabel

distanceTextField

protected com.ontimize.gui.field.RealDataField distanceTextField

okButton

protected javax.swing.JButton okButton

cancelButton

protected javax.swing.JButton cancelButton

okButtonText

protected java.lang.String okButtonText

cancelButtonText

protected java.lang.String cancelButtonText

popupItem

protected PopupMenuItem popupItem
Constructor Detail

SelectByDistanceAction

public SelectByDistanceAction()

SelectByDistanceAction

public SelectByDistanceAction(IGisViewer viewer)
Method Detail

actionPerformed

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

buildDialog

protected void buildDialog()

okButton_actionPerformed

protected void okButton_actionPerformed(java.awt.event.ActionEvent e)

cancelButton_actionPerformed

protected void cancelButton_actionPerformed(java.awt.event.ActionEvent e)

setResourceBundle

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

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

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

selectionChanged

public void selectionChanged(SelectionChangeEvent event)
Description copied from interface: SelectionChangeListener
Invoked when the actual selection changes

Specified by:
selectionChanged in interface SelectionChangeListener
Parameters:
event - Gis viewer selection change event containing the selected data values and the selection layer identifiers