org.bklab.flow.factory.ContextMenuFactory 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.factory;
import com.vaadin.flow.component.ClickEvent;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.ComponentEventListener;
import com.vaadin.flow.component.contextmenu.ContextMenu;
import com.vaadin.flow.component.contextmenu.MenuItem;
import com.vaadin.flow.component.contextmenu.SubMenu;
import org.bklab.flow.FlowFactory;
import org.bklab.flow.base.ContextMenuBaseFactory;
public class ContextMenuFactory extends FlowFactory implements
ContextMenuBaseFactory {
public ContextMenuFactory() {
this(new ContextMenu());
}
public ContextMenuFactory(Component target) {
this(new ContextMenu(target));
}
public ContextMenuFactory(ContextMenu component) {
super(component);
}
public ContextMenuFactory item(String string, ComponentEventListener> menuItem) {
get().addItem(string, menuItem);
return this;
}
public ContextMenuFactory item(Component component, ComponentEventListener> menuItem) {
get().addItem(component, menuItem);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy