org.malai.instrument.library
Class ButtonPressed2Undo

java.lang.Object
  extended by org.malai.instrument.Link<Undo,ButtonPressed,UndoRedoManager>
      extended by org.malai.instrument.library.ButtonPressed2Undo
All Implemented Interfaces:
InteractionHandler

 class ButtonPressed2Undo
extends Link<Undo,ButtonPressed,UndoRedoManager>

This link maps a button to an undo action.

Author:
Arnaud Blouin

Field Summary
 
Fields inherited from class org.malai.instrument.Link
action, clazzAction, execute, instrument, interaction
 
Constructor Summary
ButtonPressed2Undo(UndoRedoManager ins)
          Creates the link.
 
Method Summary
 void initAction()
          After being created by method createAction, the action must be initialised by this method.
 boolean isConditionRespected()
           
 
Methods inherited from class org.malai.instrument.Link
addEventable, clearEvents, createAction, getAction, getInstrument, getInteraction, interactionAborts, interactionStarts, interactionStops, interactionUpdates, interimFeedback, isActivated, isExecute, isInteractionMustBeAborted, isRunnable, isRunning, setActivated, updateAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ButtonPressed2Undo

public ButtonPressed2Undo(UndoRedoManager ins)
                   throws java.lang.InstantiationException,
                          java.lang.IllegalAccessException
Creates the link.

Parameters:
ins - The instrument that contains this link.
Throws:
java.lang.IllegalAccessException - If no free-parameter constructor is available.
java.lang.InstantiationException - If an error occurs during instantiation of the interaction/action.
Method Detail

initAction

public void initAction()
Description copied from class: Link
After being created by method createAction, the action must be initialised by this method.

Specified by:
initAction in class Link<Undo,ButtonPressed,UndoRedoManager>

isConditionRespected

public boolean isConditionRespected()
Specified by:
isConditionRespected in class Link<Undo,ButtonPressed,UndoRedoManager>
Returns:
True if the condition of the link is respected.