org.bklab.crud.menu.ICrudViewMenuColumnSupporter 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.crud.menu;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.contextmenu.ContextMenu;
import com.vaadin.flow.component.grid.ColumnTextAlign;
import com.vaadin.flow.component.grid.Grid;
import com.vaadin.flow.component.icon.VaadinIcon;
import com.vaadin.flow.function.ValueProvider;
import org.bklab.crud.FluentCrudView;
import org.bklab.flow.factory.ButtonFactory;
import java.util.List;
import java.util.function.Function;
import java.util.function.Supplier;
public interface ICrudViewMenuColumnSupporter, C extends FluentCrudView> {
default C addMenuColumn(IFluentMenuBuilder menuEntityBiConsumer) {
return this.addMenuColumn(() -> new ButtonFactory().icon(VaadinIcon.ELLIPSIS_DOTS_H.create())
.lumoIcon().lumoSmall().lumoTertiaryInline().get(), menuEntityBiConsumer);
}
default C addEditIconMenuColumn(IFluentMenuBuilder menuEntityBiConsumer) {
return this.addMenuColumn(() -> new ButtonFactory().icon(VaadinIcon.EDIT.create())
.lumoIcon().lumoSmall().lumoTertiaryInline().get(), menuEntityBiConsumer);
}
default C addMenuColumn(Supplier
© 2015 - 2025 Weber Informatics LLC | Privacy Policy