01: package desktop;
02:
03: import org.wings.SURLIcon;
04:
05: public class FileOpenerTool implements DesktopTool {
06:
07: private SURLIcon icon;
08: private String text = "";
09:
10: public DesktopItem getItem() {
11: return new FileOpenerItem();
12: }
13:
14: public DesktopItem getExistingItem(String name) {
15: return new FileOpenerItem(name);
16: }
17:
18: public String getText() {
19: return text;
20: }
21:
22: public void setText(String text) {
23: this .text = text;
24: }
25:
26: public SURLIcon getIcon() {
27: return icon;
28: }
29:
30: public void setIcon(SURLIcon icon) {
31: this.icon = icon;
32: }
33: }
|