View Javadoc

1   package org.catacomb.druid.dialog;
2   
3   import org.catacomb.druid.gui.base.DruInfoPanel;
4   import org.catacomb.interlish.annotation.IOPoint;
5   
6   
7   
8   public class ConfirmationDialogController extends DialogController {
9   
10      @IOPoint(xid="info")
11      public DruInfoPanel infoPanel;
12  
13      boolean returnValue;
14  
15  
16  
17      public void yes() {
18          returnValue = true;
19          hideDialog();
20      }
21  
22      public void cancel() {
23          returnValue = false;
24          hideDialog();
25      }
26  
27  
28      public boolean getResponse(int[] xy, String msg) {
29          returnValue = false;
30          checkInit();
31  
32          infoPanel.showInfo(msg);
33          infoPanel.revalidate();
34          showModalAt(xy[0], xy[1]);
35  
36          return returnValue;
37      }
38  
39  }