View Javadoc

1   package org.catacomb.druid.dialog;
2   
3   import org.catacomb.druid.gui.base.DruScrollingHTMLPanel;
4   import org.catacomb.interlish.annotation.IOPoint;
5   import org.catacomb.interlish.content.StringValue;
6   
7   
8   public class TextDialogController extends DialogController {
9   
10  //  @IOPoint(xid="text")
11  // public DruTextArea textArea;
12  
13      @IOPoint(xid="text")
14      public DruScrollingHTMLPanel htmlPanel;
15  
16  
17  
18      public void close() {
19  
20          hideDialog();
21      }
22  
23  
24  
25      public void showNonModal(int[] xy, StringValue txtCtnr) {
26          checkInit();
27          /*
28           textArea.setStringValue(txtCtnr);
29           textArea.setEditable(false);
30           */
31  
32          htmlPanel.setStringValue(txtCtnr);
33  
34          showNonModalAt(xy[0], xy[1]);
35  
36      }
37  
38  
39  
40      public void show(int[] xy, StringValue txtCtnr) {
41          checkInit();
42  
43          // textArea.setStringValue(txtCtnr);
44          htmlPanel.setStringValue(txtCtnr);
45  
46          showModalAt(xy[0], xy[1]);
47  
48      }
49  
50  }