Package org.vaadin.firitin.fluency.ui
Interface FluentHasStyle<S extends FluentHasStyle<S>>
- All Superinterfaces:
com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasStyle
,Serializable
- All Known Subinterfaces:
FluentHtmlContainer<S>
,FluentVaadinTextField<S,
F, T>
- All Known Implementing Classes:
ConfirmButton
,DefaultButton
,DeleteButton
,EnumSelect
,HorizontalFloatLayout
,LocaleSelect
,PagingGrid
,TreeTable
,UploadFileHandler
,VAccordion
,VAnchor
,VArticle
,VAside
,VBigDecimalField
,VButton
,VCheckBox
,VCheckboxGroup
,VCode
,VComboBox
,VDatePicker
,VDateTimePicker
,VDescriptionList
,VDiv
,VEmailField
,VEmphasis
,VFlexLayout
,VFooter
,VFormLayout
,VGrid
,VH1
,VH2
,VH3
,VH4
,VH5
,VH6
,VHeader
,VHorizontalLayout
,VHr
,VImage
,VIntegerField
,VLabel
,VListBox
,VListItem
,VMain
,VMenuBar
,VMultiSelectListBox
,VNativeButton
,VNav
,VNumberField
,VOrderedList
,VParagaph
,VPasswordField
,VProgressBar
,VRadioButtonGroup
,VScroller
,VSection
,VSelect
,VSpan
,VSplitLayout
,VTab
,VTabs
,VTextArea
,VTextField
,VUnorderedList
,VUpload
,VVerticalLayout
public interface FluentHasStyle<S extends FluentHasStyle<S>>
extends com.vaadin.flow.component.HasStyle
-
Method Summary
Modifier and TypeMethodDescriptiondefault S
withAddedClassName
(String... classNames) Adds one or more CSS class names to this component.Multiple class names can be specified by using multiple parameters.default S
withClassName
(String className) Sets the CSS class names of this component.This method overwrites any previous set class names.default S
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Method Details
-
withClassName
Sets the CSS class names of this component.This method overwrites any previous set class names.- Parameters:
className
- a space-separated string of class names to set, ornull
to remove all class names- Returns:
- the configured component
-
withAddedClassName
Adds one or more CSS class names to this component.Multiple class names can be specified by using multiple parameters.- Parameters:
classNames
- the CSS class name or class names to be added to the component- Returns:
- the configured component
-
withStyle
-