org.bklab.flow.base.KeyNotifierFactory 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.
package org.bklab.flow.base;
import com.vaadin.flow.component.*;
import org.bklab.flow.IFlowFactory;
@SuppressWarnings("unchecked")
public interface KeyNotifierFactory> extends IFlowFactory {
default E keyPressListener(Key key, ComponentEventListener listener, KeyModifier... modifiers) {
get().addKeyPressListener(key, listener, modifiers);
return (E) this;
}
default E keyPressListener(ComponentEventListener listener) {
get().addKeyPressListener(listener);
return (E) this;
}
default E keyUpListener(Key key, ComponentEventListener keyUpEvent, KeyModifier... modifiers) {
get().addKeyUpListener(key, keyUpEvent, modifiers);
return (E) this;
}
default E keyUpListener(ComponentEventListener keyUpListener) {
get().addKeyUpListener(keyUpListener);
return (E) this;
}
default E keyDownListener(ComponentEventListener keyDownListener) {
get().addKeyDownListener(keyDownListener);
return (E) this;
}
default E keyDownListener(Key key, ComponentEventListener keyDownEvent, KeyModifier... modifiers) {
get().addKeyDownListener(key, keyDownEvent, modifiers);
return (E) this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy