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