org.bklab.flow.base.ClickNotifierFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluent-vaadin-flow Show documentation
Show all versions of fluent-vaadin-flow Show documentation
Broderick Labs for fluent vaadin flow. Inherits common Vaadin components.
/*
* Copyright (c) 2008 - 2020. - Broderick Labs.
* Author: Broderick Johansson
* E-mail: [email protected]
* Modify date:2020-06-17 20:42:39
* _____________________________
* Project name: fluent-vaadin-flow
* Class name:org.bklab.flow.base.ClickNotifierFactory
* Copyright (c) 2008 - 2020. - Broderick Labs.
*/
package org.bklab.flow.base;
import com.vaadin.flow.component.*;
import org.bklab.flow.IFlowFactory;
@SuppressWarnings("unchecked")
public interface ClickNotifierFactory, E extends ClickNotifierFactory> extends IFlowFactory {
default E clickListener(ComponentEventListener> listener) {
get().addClickListener(listener);
return (E) this;
}
default E clickShortcut(Key key, KeyModifier... keyModifiers) {
get().addClickShortcut(key, keyModifiers);
return (E) this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy