Skip to content

Commit d197aef

Browse files
committed
textfield
1 parent a69c829 commit d197aef

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/com/osiris/desku/ui/input/TextField.java

+8
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ public String getValue(){
4040
return this.input.element.attr("value");
4141
}
4242

43+
/**
44+
* Triggers {@link #_onValueChange} event.
45+
*/
46+
public TextField setValue(String s){
47+
this.input.putAttribute("value", s);
48+
return this;
49+
}
50+
4351
/**
4452
* Adds a listener that gets executed when this component <br>
4553
* was clicked by the user (a JavaScript click event was thrown). <br>

0 commit comments

Comments
 (0)