use of com.vaadin.flow.component.html.Div in project flow by vaadin.
the class PolymerModelPropertiesView method addUpdateElement.
private Div addUpdateElement(String id) {
Div div = new Div();
div.setText("Property value:" + getElement().getProperty("text") + ", model value: " + getModel().getText());
div.setId(id);
return div;
}
use of com.vaadin.flow.component.html.Div in project flow by vaadin.
the class PolymerPropertyChangeEventView method propertyChanged.
private void propertyChanged(PropertyChangeEvent event) {
Div div = new Div();
div.setText("New property value: '" + event.getValue() + "', old property value: '" + event.getOldValue() + "'");
div.addClassName("change-event");
add(div);
}
use of com.vaadin.flow.component.html.Div in project flow by vaadin.
the class SubPropertyModelTemplate method click.
@EventHandler
private void click(@ModelItem("status") Status statusItem) {
Div div = new Div();
div.setId("statusClick");
div.setText(statusItem.getMessage());
((HasComponents) getParent().get()).add(div);
}
use of com.vaadin.flow.component.html.Div in project flow by vaadin.
the class SubPropertyModelTemplate method sync.
@EventHandler
private void sync() {
Div div = new Div();
div.setId("synced-msg");
div.setText(getStatus().getMessage());
((HasComponents) getParent().get()).add(div);
}
use of com.vaadin.flow.component.html.Div in project flow by vaadin.
the class PaperInputView method showValue.
private void showValue(String value) {
Div div = new Div();
div.setText(value);
div.setClassName("update-value");
add(div);
}
Aggregations