com.partnersoft.maps.actors
Class AbstractModuleMapEditActor

java.lang.Object
  extended by com.partnersoft.maps.model.AbstractMapEditActor
      extended by com.partnersoft.maps.actors.AbstractModuleMapEditActor
All Implemented Interfaces:
MapEditActor
Direct Known Subclasses:
AbstractSnapshotActor

public abstract class AbstractModuleMapEditActor
extends AbstractMapEditActor

Abstract, module-aware implementation of MapEditActor. Includes convenience methods for common tasks such as refresh and reselection.

Whereas AbstractMapEditActor is a very bare-bones abstract implementation, this has more convenient method.

Copyright 2007-2008 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Field Summary
protected  MapApp app
           
protected  MapSet mapset
           
protected  Module module
           
 
Constructor Summary
AbstractModuleMapEditActor(MapApp app, MapSet mapset)
           
 
Method Summary
 void clearSelectionList()
          Clears the current selection list.
 void refresh()
          Fires a job change event, which triggers a mapset refresh.
 boolean refreshAndReselect(MapEditContext context)
          Refreshes and reselects the currently selected data item based on its guid and other context.
 boolean refreshAndSelect(java.lang.String dataType, java.lang.String fieldName, java.lang.Object fieldValue, double x, double y)
          Selects the item with the desired data type, field name, and field value.
 boolean refreshAndSelect(java.lang.String dataType, java.lang.String fieldName, java.lang.Object fieldValue, XyPoint location)
          Refreshes, then calls select.
 boolean select(java.lang.String dataType, java.lang.String fieldName, java.lang.Object fieldValue, double x, double y)
          Selects the item with the desired data type, field name, and field value.
 boolean select(java.lang.String dataType, java.lang.String fieldName, java.lang.Object fieldValue, XyPoint location)
          Selects the item with the desired data type, field name, and field value.
 
Methods inherited from class com.partnersoft.maps.model.AbstractMapEditActor
add, connect, convert, copy, delete, edit, ephemeronFor, isAddSupported, isConnectSupported, isConvertSupported, isCopySupported, isDeleteSupported, isEditSupported, isMoveSupported, isRotateSupported, listSupportedActions, listSupportedTools, move, rotate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

app

protected MapApp app

mapset

protected MapSet mapset

module

protected Module module
Constructor Detail

AbstractModuleMapEditActor

public AbstractModuleMapEditActor(MapApp app,
                                  MapSet mapset)
Method Detail

refresh

public void refresh()
Fires a job change event, which triggers a mapset refresh.


clearSelectionList

public void clearSelectionList()
Clears the current selection list. Useful after you delete something.


select

public boolean select(java.lang.String dataType,
                      java.lang.String fieldName,
                      java.lang.Object fieldValue,
                      XyPoint location)
Selects the item with the desired data type, field name, and field value. Useful for automatically selecting something after moving or adding it.


select

public boolean select(java.lang.String dataType,
                      java.lang.String fieldName,
                      java.lang.Object fieldValue,
                      double x,
                      double y)
Selects the item with the desired data type, field name, and field value. Useful for automatically selecting something after moving or adding it.


refreshAndSelect

public boolean refreshAndSelect(java.lang.String dataType,
                                java.lang.String fieldName,
                                java.lang.Object fieldValue,
                                XyPoint location)
Refreshes, then calls select.


refreshAndSelect

public boolean refreshAndSelect(java.lang.String dataType,
                                java.lang.String fieldName,
                                java.lang.Object fieldValue,
                                double x,
                                double y)
Selects the item with the desired data type, field name, and field value. Useful for automatically selecting something after moving or adding it.


refreshAndReselect

public boolean refreshAndReselect(MapEditContext context)
Refreshes and reselects the currently selected data item based on its guid and other context.