use of com.vaadin.flow.component.textfield.TextField in project Test-Bench-Data by DanielMartensson.
the class LxCurveView method createFilterField.
private TextField createFilterField(String placeHolder, GridCrud<LxData> crud) {
TextField textField = new TextField();
textField.setPlaceholder(placeHolder);
textField.setClearButtonVisible(true);
textField.addValueChangeListener(e -> crud.refreshGrid());
return textField;
}
use of com.vaadin.flow.component.textfield.TextField in project Test-Bench-Data by DanielMartensson.
the class LxDataView method createFilterField.
private TextField createFilterField(String placeHolder, GridCrud<LxData> crud) {
TextField textField = new TextField();
textField.setPlaceholder(placeHolder);
textField.setClearButtonVisible(true);
textField.addValueChangeListener(e -> crud.refreshGrid());
return textField;
}
use of com.vaadin.flow.component.textfield.TextField in project Test-Bench-Data by DanielMartensson.
the class RsqDataView method createFilterField.
private TextField createFilterField(String placeHolder, GridCrud<RsqData> crud) {
TextField textField = new TextField();
textField.setPlaceholder(placeHolder);
textField.setClearButtonVisible(true);
textField.addValueChangeListener(e -> crud.refreshGrid());
return textField;
}
use of com.vaadin.flow.component.textfield.TextField in project linkki by linkki-framework.
the class BindPlaceholderIntegrationTest method testAspectBindPlaceholderAnnotation_AutoWithValue.
@Test
void testAspectBindPlaceholderAnnotation_AutoWithValue() {
TextField textfield = (TextField) uiElements.get("placeholderFieldAutoWithValue");
String placeholderResult = textfield.getPlaceholder();
assertThat(placeholderResult).isEqualTo("I am a placeholder");
}
use of com.vaadin.flow.component.textfield.TextField in project linkki by linkki-framework.
the class BindPlaceholderIntegrationTest method testAspectBindPlaceholderAnnotation_DynamicWithValue.
@Test
void testAspectBindPlaceholderAnnotation_DynamicWithValue() {
TextField textfield = (TextField) uiElements.get("placeholderFieldDynamic");
pmo.setPlaceholder("I got changed");
bindingContext.modelChanged();
String placeholderResult = textfield.getPlaceholder();
assertThat(placeholderResult).isEqualTo("I got changed");
}
Aggregations