source: release-kits/wirk3/ant-scripts/tasks/antelope/src/ise/antelope/tasks/typedefs/string/MessageBox.java@ 15023

Last change on this file since 15023 was 15023, checked in by oranfry, 16 years ago

did the bulk of the work on wirk3

File size: 711 bytes
Line 
1package ise.antelope.tasks.typedefs.string;
2
3
4/**
5 * Copyright 2003
6 *
7 * @version $Revision: 1.1 $
8 */
9public class MessageBox implements StringOp {
10
11 private String title = null;
12 private int width = 60;
13
14 public void setTitle(String t) {
15 title = t;
16 }
17
18 public void setWidth(int w) {
19 width = w;
20 }
21
22 /**
23 * Description of the Method
24 *
25 * @param s
26 * @return Description of the Returned Value
27 */
28 public String execute(String s) {
29 if (width <= 0)
30 return "";
31 else
32 ise.library.ascii.MessageBox.setMaxWidth(width);
33 return ise.library.ascii.MessageBox.box(title, s);
34 }
35}
36
37
Note: See TracBrowser for help on using the repository browser.