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
15
16
17 public class AddGestureClassToConstraintAction extends LocateableAction {
18
19 private CompositeDescriptorPanel panel;
20
21 public AddGestureClassToConstraintAction(Controller controller, CompositeDescriptorPanel panel)
22 {
23 super(GestureConstants.ADD_GESTURE_CLASS_TO_CONSTRAINT,controller.getLocator());
24 this.panel = panel;
25 }
26
27
28
29
30 @Override
31 public void actionPerformed(ActionEvent e) {
32 panel.addGestureClass();
33 }
34
35 }