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

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

There is a newer version: 22.0.1
Show newest version
package org.bklab.flow.base;

import com.vaadin.flow.component.contextmenu.ContextMenuBase;
import com.vaadin.flow.component.contextmenu.MenuItemBase;
import com.vaadin.flow.component.contextmenu.SubMenuBase;
import org.bklab.flow.IFlowFactory;

import java.util.function.Supplier;

@SuppressWarnings("unchecked")
public interface MenuItemBaseFactory, I extends MenuItemBase, S extends SubMenuBase, E extends MenuItemBaseFactory> extends Supplier,
        HasTextFactory,
        HasComponentsFactory,
        HasEnabledFactory {
    default E checked(boolean checked) {
        get().setChecked(checked);
        return (E) this;
    }

    default E checkable(boolean checkable) {
        get().setCheckable(checkable);
        return (E) this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy