View Javadoc

1   /**
2    * 
3    */
4   package org.ximtec.igesture.tool.view.admin.action;
5   
6   import java.awt.event.ActionEvent;
7   
8   import org.ximtec.igesture.tool.GestureConstants;
9   import org.ximtec.igesture.tool.core.Controller;
10  import org.ximtec.igesture.tool.core.LocateableAction;
11  import org.ximtec.igesture.tool.view.admin.panel.CompositeDescriptorPanel;
12  
13  /**
14   * @author Bjorn Puype, bpuype@gmail.com
15   *
16   */
17  public class RemoveGestureClassFromConstraintAction extends LocateableAction {
18  
19  	private CompositeDescriptorPanel panel;
20  	
21  	public RemoveGestureClassFromConstraintAction(Controller controller, CompositeDescriptorPanel panel)
22  	{
23  		super(GestureConstants.REMOVE_GESTURE_CLASS_FROM_CONSTRAINT, controller.getLocator());
24  		this.panel = panel;
25  	}
26  	
27  	/* (non-Javadoc)
28  	 * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
29  	 */
30  	@Override
31  	public void actionPerformed(ActionEvent e) {
32  		panel.removeGestureClass();
33  	}
34  
35  }