net.sf.latexdraw.instruments
Class ButtonPressedForCustomiser<A extends ShapePropertyAction,N extends ShapePropertyCustomiser>

java.lang.Object
  extended by org.malai.instrument.Link<A,ButtonPressed,N>
      extended by net.sf.latexdraw.instruments.ButtonPressedForCustomiser<A,N>
All Implemented Interfaces:
InteractionHandler
Direct Known Subclasses:
Button2ArcStyle, ButtonPressed2ChangePencil, ButtonPressed2ChangeTextPosition, ShapeGridCustomiser.CheckBox4ShapeGridCust

abstract class ButtonPressedForCustomiser<A extends ShapePropertyAction,N extends ShapePropertyCustomiser>
extends Link<A,ButtonPressed,N>

This link maps a button to an object.


Field Summary
 
Fields inherited from class org.malai.instrument.Link
action, clazzAction, execute, instrument, interaction
 
Constructor Summary
protected ButtonPressedForCustomiser(N ins, java.lang.Class<A> clazzAction)
          Creates the link.
 
Method Summary
 
Methods inherited from class org.malai.instrument.Link
addEventable, clearEvents, createAction, getAction, getInstrument, getInteraction, initAction, interactionAborts, interactionStarts, interactionStops, interactionUpdates, interimFeedback, isActivated, isConditionRespected, 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

ButtonPressedForCustomiser

protected ButtonPressedForCustomiser(N ins,
                                     java.lang.Class<A> clazzAction)
                              throws java.lang.InstantiationException,
                                     java.lang.IllegalAccessException
Creates the link.

Parameters:
ins - The instrument that contains the link.
clazzAction - The class of the action to create.
Throws:
java.lang.InstantiationException - If an error of instantiation (interaction, action) occurs.
java.lang.IllegalAccessException - If no free-parameter constructor are provided.