Interface FluentHasSize<S extends FluentHasSize<S>>
- All Superinterfaces:
com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasSize
,Serializable
- All Known Subinterfaces:
FluentHtmlContainer<S>
,FluentVaadinTextField<S,
F, T>
- All Known Implementing Classes:
CommaSeparatedStringField
,ConfirmationDialog
,ConfirmButton
,DefaultButton
,DeleteButton
,EnumSelect
,HorizontalFloatLayout
,LocaleSelect
,PagingGrid
,PopoverButton
,TreeTable
,UploadFileHandler
,VAnchor
,VArticle
,VAside
,VBigDecimalField
,VButton
,VCheckBox
,VCheckboxGroup
,VCode
,VComboBox
,VCustomField
,VDatePicker
,VDateTimePicker
,VDescriptionList
,VDialog
,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
,VPopover
,VProgressBar
,VScroller
,VSection
,VSelect
,VSpan
,VSplitLayout
,VTextArea
,VTextField
,VTimePicker
,VUnorderedList
,VUpload
,VVerticalLayout
public interface FluentHasSize<S extends FluentHasSize<S>>
extends com.vaadin.flow.component.HasSize
-
Method Summary
Modifier and TypeMethodDescriptiondefault com.vaadin.flow.shared.Registration
addResizeListener
(com.vaadin.flow.component.ComponentEventListener<ResizeObserver.SizeChangeEvent> listener) Deprecated.Hoping to get this feature to the core soon, there might be API conflicts at that point.default S
Sets the height to 100%.default S
Sets the width to 100%.default S
withHeight
(String height) default S
withMaxHeight
(String maxHeight) default S
withMaxSize
(String width, String height) default S
withMaxWidth
(String maxWidth) default S
withMinHeight
(String minHeight) default S
withMinSize
(String width, String height) default S
withMinWidth
(String minWidth) default S
default S
default S
default S
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
-
Method Details
-
withHeight
-
withSizeFull
-
withSizeUndefined
-
withWidth
-
addResizeListener
@Deprecated default com.vaadin.flow.shared.Registration addResizeListener(com.vaadin.flow.component.ComponentEventListener<ResizeObserver.SizeChangeEvent> listener) Deprecated.Hoping to get this feature to the core soon, there might be API conflicts at that point. Use the lower levelResizeObserver
directly if you are concerned about potential future API conflicts.Adds a listener that is notified when the size of the component changes on the client side. The listener is also notified when the dimensions of the component become available for the first time.- Parameters:
listener
- the listener to add- Returns:
- a registration object for removing the listener
-
withFullWidth
-
withFullHeight
-
withSize
-
withMinWidth
-
withMaxWidth
-
withMinHeight
-
withMaxHeight
-
withMinSize
-
withMaxSize
-