|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.refractions.udig.tools.edit.behaviour.DefaultCancelBehaviour
public class DefaultCancelBehaviour
This behaviour sets the current state to NONE, the Current Edit Feature to null, the Current Shape to null and clears the current map's blackboards.
| Constructor Summary | |
|---|---|
DefaultCancelBehaviour()
|
|
| Method Summary | |
|---|---|
UndoableMapCommand |
getCommand(EditToolHandler handler)
The action to be performed by this Behaviour. |
void |
handleError(EditToolHandler handler,
java.lang.Throwable error,
UndoableMapCommand command)
This method is called if an exception occurs during the execution of the run method. |
boolean |
isValid(EditToolHandler handler)
Called to determine whether this Behaviour is applicable and should be run. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCancelBehaviour()
| Method Detail |
|---|
public boolean isValid(EditToolHandler handler)
Behaviour
isValid in interface Behaviourhandler - handler that calls this Behaviour
public UndoableMapCommand getCommand(EditToolHandler handler)
Behaviour
getCommand in interface Behaviourhandler - handler that calls this Behaviour
public void handleError(EditToolHandler handler,
java.lang.Throwable error,
UndoableMapCommand command)
BehaviourThis method should:
handleError in interface Behaviourerror - Error that occurredcommand - Command retrieved from getCommandMethod. May be null if exception occurred while
executing getCommand();
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||