Skip to content

Commit

Permalink
Add helper for integrating elements with a string value (#979)
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur- authored Jan 26, 2018
1 parent 9b09e3a commit 96e692e
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.vaadin.testbench;

public interface HasStringValueProperty extends HasPropertySettersGetters {

default public String getValue() {
return getPropertyString("value");
}

default public void setValue(String string) {
setProperty("value", string);
}

@Override
default public void clear() {
setValue("");
}

}

0 comments on commit 96e692e

Please sign in to comment.