All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bklab.flow.base.KeyNotifierFactory Maven / Gradle / Ivy

There is a newer version: 22.0.1
Show newest version
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