use of com.vaadin.flow.server.Command in project flow by vaadin.
the class ElementAttributeMap method deferRegistration.
private void deferRegistration(String attribute, AbstractStreamResource resource) {
ensurePendingRegistrations();
assert !pendingRegistrations.containsKey(attribute);
Registration handle = getNode().addAttachListener(new Command() {
@Override
public void execute() {
doSetResource(attribute, resource);
registerResource(attribute, resource);
}
});
pendingRegistrations.put(attribute, handle);
}
Aggregations