Line | |
---|
1 | package ise.antelope.tasks.typedefs.string;
|
---|
2 |
|
---|
3 |
|
---|
4 | /**
|
---|
5 | * Copyright 2003
|
---|
6 | *
|
---|
7 | * @version $Revision: 1.1 $
|
---|
8 | */
|
---|
9 | public 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.