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, CopyToClipboardButton, DefaultButton, DeleteButton, EnumSelect, GridMultiSelect, GridSelect, HorizontalFloatLayout, LocaleSelect, PagingGrid, PopoverButton, PrintPdfButton, ReadFromClipboardButton, ToggleButton, 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, VListBox, VListItem, VMain, VMenuBar, VMultiSelectListBox, VNativeButton, VNav, VNumberField, VOrderedList, VParagaph, VPasswordField, VPopover, VProgressBar, VScroller, VSection, VSelect, VSpan, VSplitLayout, VSvg, VTextArea, VTextField, VTimePicker, VUnorderedList, VUpload, VVerticalLayout

public interface FluentHasSize<S extends FluentHasSize<S>> extends com.vaadin.flow.component.HasSize
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    default S
    Sets the height to 100%.
    default S
    Sets the width to 100%.
    default S
     
    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
    withSize(String width, String height)
     
    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

    bindHeight, bindWidth, 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

      default S withHeight(String height)
    • withSizeFull

      default S withSizeFull()
    • withSizeUndefined

      default S withSizeUndefined()
    • withWidth

      default S withWidth(String width)
    • 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 level ResizeObserver 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

      default S withFullWidth()
      Sets the width to 100%.
      Returns:
      this (for method chaining)
    • withFullHeight

      default S withFullHeight()
      Sets the height to 100%.
      Returns:
      this (for method chaining)
    • withSize

      default S withSize(String width, String height)
    • withMinWidth

      default S withMinWidth(String minWidth)
    • withMaxWidth

      default S withMaxWidth(String maxWidth)
    • withMinHeight

      default S withMinHeight(String minHeight)
    • withMaxHeight

      default S withMaxHeight(String maxHeight)
    • withMinSize

      default S withMinSize(String width, String height)
    • withMaxSize

      default S withMaxSize(String width, String height)