com.partnersoft.maps.model
Class ExceptionCatchingMapEditActor

java.lang.Object
  extended by com.partnersoft.maps.model.ExceptionCatchingMapEditActor
All Implemented Interfaces:
MapEditActor

public class ExceptionCatchingMapEditActor
extends java.lang.Object
implements MapEditActor

A wrapper for a MapEditActor that catches and logs all exceptions. Useful for dealing with MapDataDrawingActors generated in BeanShell scripts.

Copyright 2007 Partner Software, Inc.

Version:
$Id: ExceptionCatchingMapEditActor.java 1296 2008-04-22 21:04:19Z paul $
Author:
Paul Reavis

Constructor Summary
ExceptionCatchingMapEditActor(MapEditActor delegate)
           
 
Method Summary
 void add(MapEditContext context)
          Performs an add.
 void connect(MapEditContext context)
          Performs a connect action.
 void convert(MapEditContext context)
          Converts an item to the selected type.
 void copy(MapEditContext context)
          Performs a copy.
 void delete(MapEditContext context)
          Performs a delete.
 void edit(MapEditContext context)
          Edits an item.
 Ephemeron ephemeronFor(MapEditContext context)
          Returns an Ephemeron for the given context.
 MapEditActor getDelegate()
           
 boolean isAddSupported(MapEditContext context)
          Returns true if add is supported.
 boolean isConnectSupported(MapEditContext item)
          Returns true if connect is supported.
 boolean isConvertSupported(MapEditContext context)
          Returns true if convert is supported.
 boolean isCopySupported(MapEditContext context)
          Returns true if copy is supported.
 boolean isDeleteSupported(MapEditContext item)
          Returns true if delete is supported.
 boolean isEditSupported(MapEditContext context)
          Returns true if edit is supported.
 boolean isMoveSupported(MapEditContext item)
          Returns true if moving is supported.
 boolean isRotateSupported(MapEditContext item)
          Returns true if rotate is supported.
 java.util.List<java.lang.String> listSupportedActions(MapEditContext item)
          Returns a list of action names supported for the given item.
 java.util.List<MapEditTool> listSupportedTools()
          Returns a list of drawing scripts/things applicable for the given item.
 void move(MapEditContext context)
          Performs a move.
 void rotate(MapEditContext context)
          Performs a rotate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionCatchingMapEditActor

public ExceptionCatchingMapEditActor(MapEditActor delegate)
Method Detail

isAddSupported

public boolean isAddSupported(MapEditContext context)
Description copied from interface: MapEditActor
Returns true if add is supported.

Specified by:
isAddSupported in interface MapEditActor

isCopySupported

public boolean isCopySupported(MapEditContext context)
Description copied from interface: MapEditActor
Returns true if copy is supported.

Specified by:
isCopySupported in interface MapEditActor

isConvertSupported

public boolean isConvertSupported(MapEditContext context)
Description copied from interface: MapEditActor
Returns true if convert is supported.

Specified by:
isConvertSupported in interface MapEditActor

isEditSupported

public boolean isEditSupported(MapEditContext context)
Description copied from interface: MapEditActor
Returns true if edit is supported.

Specified by:
isEditSupported in interface MapEditActor

isDeleteSupported

public boolean isDeleteSupported(MapEditContext item)
Description copied from interface: MapEditActor
Returns true if delete is supported.

Specified by:
isDeleteSupported in interface MapEditActor

isMoveSupported

public boolean isMoveSupported(MapEditContext item)
Description copied from interface: MapEditActor
Returns true if moving is supported.

Specified by:
isMoveSupported in interface MapEditActor

isRotateSupported

public boolean isRotateSupported(MapEditContext item)
Description copied from interface: MapEditActor
Returns true if rotate is supported.

Specified by:
isRotateSupported in interface MapEditActor

isConnectSupported

public boolean isConnectSupported(MapEditContext item)
Description copied from interface: MapEditActor
Returns true if connect is supported.

Specified by:
isConnectSupported in interface MapEditActor

add

public void add(MapEditContext context)
Description copied from interface: MapEditActor
Performs an add. Throws UnsupportedOperationException if isAddSupported() is false.

Specified by:
add in interface MapEditActor
Parameters:
context - TODO

copy

public void copy(MapEditContext context)
Description copied from interface: MapEditActor
Performs a copy. Throws UnsupportedOperationException if isCopySupported() is false.

Specified by:
copy in interface MapEditActor
Parameters:
context - TODO

convert

public void convert(MapEditContext context)
Description copied from interface: MapEditActor
Converts an item to the selected type. Throws UnsupportedOperationException if isConvertSupported() is false.

Specified by:
convert in interface MapEditActor
Parameters:
context - TODO

edit

public void edit(MapEditContext context)
Description copied from interface: MapEditActor
Edits an item. Throws UnsupportedOperationException if isEditSupported() is false.

Specified by:
edit in interface MapEditActor
Parameters:
context - TODO

delete

public void delete(MapEditContext context)
Description copied from interface: MapEditActor
Performs a delete. Throws UnsupportedOperationException if isDeleteSupported() is false.

Specified by:
delete in interface MapEditActor
Parameters:
context - TODO

move

public void move(MapEditContext context)
Description copied from interface: MapEditActor
Performs a move. Throws UnsupportedOperationException if isMoveSupported() is false.

Specified by:
move in interface MapEditActor
Parameters:
context - TODO

rotate

public void rotate(MapEditContext context)
Description copied from interface: MapEditActor
Performs a rotate. Throws UnsupportedOperationException if isRotateSupported() is false.

Specified by:
rotate in interface MapEditActor
Parameters:
context - TODO

connect

public void connect(MapEditContext context)
Description copied from interface: MapEditActor
Performs a connect action. Throws UnsupportedOperationException if isConnectSupported() is false.

Specified by:
connect in interface MapEditActor

listSupportedActions

public java.util.List<java.lang.String> listSupportedActions(MapEditContext item)
Description copied from interface: MapEditActor
Returns a list of action names supported for the given item.

Specified by:
listSupportedActions in interface MapEditActor

listSupportedTools

public java.util.List<MapEditTool> listSupportedTools()
Description copied from interface: MapEditActor
Returns a list of drawing scripts/things applicable for the given item. TODO: a better name please

Specified by:
listSupportedTools in interface MapEditActor
Returns:

ephemeronFor

public Ephemeron ephemeronFor(MapEditContext context)
Description copied from interface: MapEditActor
Returns an Ephemeron for the given context.

Specified by:
ephemeronFor in interface MapEditActor

getDelegate

public MapEditActor getDelegate()