1 package org.catacomb.druid.gui.base;
2
3 import org.catacomb.druid.gui.edit.DruListPanel;
4
5
6 public class DruListClickActor {
7
8 int xmin;
9 int xmax;
10 String action;
11
12
13
14 public DruListClickActor(int xm, int xx, String act) {
15 xmin = xm;
16 xmax = xx;
17 action = act;
18 }
19
20 public void clicked(int x, DruListPanel drulp) {
21 if (x > xmin && x < xmax) {
22 drulp.performAction(action);
23 }
24 }
25
26 }