org.bklab.flow.base.GeneratedVaadinButtonFactory 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.
/*
* Copyright (c) 2008 - 2020. - Broderick Labs.
* Author: Broderick Johansson
* E-mail: [email protected]
* Modify date:2020-06-17 20:35:31
* _____________________________
* Project name: fluent-vaadin-flow
* Class name:org.bklab.flow.base.GeneratedVaadinButtonFactory
* Copyright (c) 2008 - 2020. - Broderick Labs.
*/
package org.bklab.flow.base;
import com.vaadin.flow.component.button.ButtonVariant;
import com.vaadin.flow.component.button.GeneratedVaadinButton;
import org.bklab.flow.IFlowFactory;
@SuppressWarnings("unchecked")
public interface GeneratedVaadinButtonFactory, E extends GeneratedVaadinButtonFactory> extends IFlowFactory,
HasStyleFactory,
ClickNotifierFactory,
HasTextFactory,
FocusableFactory,
HasThemeFactory {
default E removeThemeVariants(ButtonVariant... removeThemeVariants) {
get().removeThemeVariants(removeThemeVariants);
return (E) this;
}
default E themeVariants(ButtonVariant... themeVariants) {
get().addThemeVariants(themeVariants);
return (E) this;
}
default E lumoSmall() {
get().addThemeVariants(ButtonVariant.LUMO_SMALL);
return (E) this;
}
default E lumoLarge() {
get().addThemeVariants(ButtonVariant.LUMO_LARGE);
return (E) this;
}
default E lumoTertiary() {
get().addThemeVariants(ButtonVariant.LUMO_TERTIARY);
return (E) this;
}
default E lumoTertiaryInline() {
get().addThemeVariants(ButtonVariant.LUMO_TERTIARY_INLINE);
return (E) this;
}
default E lumoPrimary() {
get().addThemeVariants(ButtonVariant.LUMO_PRIMARY);
return (E) this;
}
default E lumoSuccess() {
get().addThemeVariants(ButtonVariant.LUMO_SUCCESS);
return (E) this;
}
default E lumoError() {
get().addThemeVariants(ButtonVariant.LUMO_ERROR);
return (E) this;
}
default E lumoContrast() {
get().addThemeVariants(ButtonVariant.LUMO_CONTRAST);
return (E) this;
}
default E lumoIcon() {
get().addThemeVariants(ButtonVariant.LUMO_ICON);
return (E) this;
}
default E materialContained() {
get().addThemeVariants(ButtonVariant.MATERIAL_CONTAINED);
return (E) this;
}
default E materialOutlined() {
get().addThemeVariants(ButtonVariant.MATERIAL_OUTLINED);
return (E) this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy