View Javadoc

1   package org.catacomb.druid.gui.base;
2   
3   
4   import org.catacomb.druid.gui.edit.Effect;
5   import org.catacomb.interlish.structure.InfoReceiver;
6   
7   
8   
9   
10  public class DruInfoEffect extends Effect  {
11  
12      String infoTitle;
13      String infoText;
14  
15      InfoReceiver infoReceiver;
16  
17      public DruInfoEffect(String stit, String stxt, InfoReceiver ir) {
18          super();
19          infoTitle = stit;
20          infoText = stxt;
21          infoReceiver = ir;
22      }
23  
24  
25  
26      public void apply(boolean b) {
27          infoReceiver.receiveInfo(infoTitle, infoText);
28      }
29  
30  
31  
32  }