|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Behaviour
This is a Stategy object for the (@link net.refractions.udig.tools.edit.latest.EditToolHandler} behaviour. Each Behaviour is valid in a particular context and will be run by the (@link net.refractions.udig.tools.edit.latest.EditToolHandler} if the isValid method returns true.
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. |
Method Detail |
---|
boolean isValid(EditToolHandler handler)
handler
- handler that calls this Behaviour
UndoableMapCommand getCommand(EditToolHandler handler)
handler
- handler that calls this Behaviour
void handleError(EditToolHandler handler, java.lang.Throwable error, UndoableMapCommand command)
This method should:
error
- 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 |