KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > designer > view > TextInputDummy


1 /*
2  * (c) Rob Gordon 2005
3  */

4 package org.oddjob.designer.view;
5
6 import org.oddjob.designer.model.TextInput;
7
8 public class TextInputDummy extends DummyView {
9     
10     private TextInput textInput;
11     
12     public TextInputDummy(TextInput textInput) {
13         this.textInput = textInput;
14     }
15     
16     public void attribute(String JavaDoc attribute) {
17         textInput.setText(attribute);
18     }
19     
20     public String JavaDoc attribute() {
21         return textInput.getText();
22     }
23 }
24
Popular Tags