Package com.storedobject.vaadin
Interface HasThemeStyle
- All Superinterfaces:
com.vaadin.flow.component.HasElement,Serializable
- All Known Subinterfaces:
AbstractObjectInput<T>,DelegatedIdInput<T>,DelegatedObjectInput<T>,HasBadgeStyle,HasElement,HasIcon,HasSquareElement,IdInput<T>,ItemInput<T>,ObjectInput<T>
- All Known Implementing Classes:
AbstractObjectField,AccountField,AssemblyItemField,Badge,BadgeIcon,BinField,BlockComboField,Breadcrumbs.Breadcrumb,Button,ButtonIcon,ConfirmButton,FileField,Icon,ImageButton,ItemComboField,ItemField,ItemGetField,ItemTypeGetField,LocationField,ObjectCodeField,ObjectComboField,ObjectField,ObjectFormField,ObjectGetField,ObjectListField,ObjectSearcherField,ObjectSearchField,ObjectViewerButton,PopupButton,UserField
@JsModule("./so/badge/styles.js")
public interface HasThemeStyle
extends com.vaadin.flow.component.HasElement
Interface to mark that a class has theme styles.
- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddTheme(ThemeStyle... styles) Add theme styles.default HasThemeStyleMake it primary style.default HasThemeStyleasSmall()Make it small.default voidClear all theme styles.default com.vaadin.flow.dom.ElementGet the internal element where the theme is ultimately applied.default voidremoveTheme(ThemeStyle... styles) Remove theme styles.default voidsetTheme(ThemeStyle... styles) Set theme styles.Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
-
Method Details
-
setTheme
-
addTheme
-
removeTheme
Remove theme styles.- Parameters:
styles- Style to remove
-
clearThemes
default void clearThemes()Clear all theme styles. -
asSmall
-
asPrimary
-
getInternalElement
default com.vaadin.flow.dom.Element getInternalElement()Get the internal element where the theme is ultimately applied.- Returns:
- The default implementation returns the same element.
-