Interface HasSizeable

All Superinterfaces:
FSizeable, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasSize, Serializable
All Known Subinterfaces:
FAbstractTextField
All Known Implementing Classes:
CustomComponent, CustomField, FButton, FCheckBox, FComboBox, FDateField, FListSelect, FMenuBar, FPasswordField, FTextArea, FTextField, FTokenField, FTwinColSelect

public interface HasSizeable extends FSizeable, com.vaadin.flow.component.HasSize
Junction Interface for components that implement Vaadin 7/8 Sizeable and Flow's HasSize. Flow's default implementation always yields.
  • Method Summary

    Modifier and Type
    Method
    Description
    default float
    Gets the height of the object.
    default float
    Gets the width of the object.
    default com.vaadin.flow.component.Unit
    Gets the height property units.
    default com.vaadin.flow.component.Unit
    Gets the width property units.
    default void
    setHeight(float height, com.vaadin.flow.component.Unit unit)
    Sets the height of the object.
    default void
    setHeight(String height)
    Sets the height of the component using String presentation.
    default void
    Sets the height to 100%.
    default void
    Clears any defined height.
    default void
    Sets the size to 100% x 100%.
    default void
    Clears any size settings.
    default void
    setWidth(float width, com.vaadin.flow.component.Unit unit)
    Sets the width of the object.
    default void
    Sets the width of the component using String presentation.
    default void
    Sets the width to 100%.
    default void
    Clears any defined width.

    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, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth
  • Method Details

    • getFWidth

      default float getFWidth()
      Description copied from interface: FSizeable
      Gets the width of the object. Negative number implies unspecified size (terminal is free to set the size).
      Specified by:
      getFWidth in interface FSizeable
      Returns:
      width of the object in units specified by widthUnits property.
    • getFHeight

      default float getFHeight()
      Description copied from interface: FSizeable
      Gets the height of the object. Negative number implies unspecified size (terminal is free to set the size).
      Specified by:
      getFHeight in interface FSizeable
      Returns:
      height of the object in units specified by heightUnits property.
    • getWidthUnits

      default com.vaadin.flow.component.Unit getWidthUnits()
      Description copied from interface: FSizeable
      Gets the width property units.
      Specified by:
      getWidthUnits in interface FSizeable
      Returns:
      units used in width property.
    • getHeightUnits

      default com.vaadin.flow.component.Unit getHeightUnits()
      Description copied from interface: FSizeable
      Gets the height property units.
      Specified by:
      getHeightUnits in interface FSizeable
      Returns:
      units used in height property.
    • setHeight

      default void setHeight(String height)
      Description copied from interface: FSizeable
      Sets the height of the component using String presentation.

      String presentation is similar to what is used in Cascading Style Sheets. Size can be length or percentage of available size.

      The empty string ("") or null will unset the height and set the units to pixels.

      See CSS specification for more details.

      Specified by:
      setHeight in interface FSizeable
      Specified by:
      setHeight in interface com.vaadin.flow.component.HasSize
      Parameters:
      height - in CSS style string representation
    • setWidth

      default void setWidth(float width, com.vaadin.flow.component.Unit unit)
      Description copied from interface: FSizeable
      Sets the width of the object. Negative number implies unspecified size (terminal is free to set the size).
      Specified by:
      setWidth in interface FSizeable
      Specified by:
      setWidth in interface com.vaadin.flow.component.HasSize
      Parameters:
      width - the width of the object.
      unit - the unit used for the width.
    • setHeight

      default void setHeight(float height, com.vaadin.flow.component.Unit unit)
      Description copied from interface: FSizeable
      Sets the height of the object. Negative number implies unspecified size (terminal is free to set the size).
      Specified by:
      setHeight in interface FSizeable
      Specified by:
      setHeight in interface com.vaadin.flow.component.HasSize
      Parameters:
      height - the height of the object.
      unit - the unit used for the width.
    • setWidth

      default void setWidth(String width)
      Description copied from interface: FSizeable
      Sets the width of the component using String presentation.

      String presentation is similar to what is used in Cascading Style Sheets. Size can be length or percentage of available size.

      The empty string ("") or null will unset the width and set the units to pixels.

      See CSS specification for more details.

      Specified by:
      setWidth in interface FSizeable
      Specified by:
      setWidth in interface com.vaadin.flow.component.HasSize
      Parameters:
      width - in CSS style string representation, null or empty string to reset
    • setSizeFull

      default void setSizeFull()
      Description copied from interface: FSizeable
      Sets the size to 100% x 100%.
      Specified by:
      setSizeFull in interface FSizeable
      Specified by:
      setSizeFull in interface com.vaadin.flow.component.HasSize
    • setWidthFull

      default void setWidthFull()
      Description copied from interface: FSizeable
      Sets the width to 100%.
      Specified by:
      setWidthFull in interface FSizeable
      Specified by:
      setWidthFull in interface com.vaadin.flow.component.HasSize
    • setHeightFull

      default void setHeightFull()
      Description copied from interface: FSizeable
      Sets the height to 100%.
      Specified by:
      setHeightFull in interface FSizeable
      Specified by:
      setHeightFull in interface com.vaadin.flow.component.HasSize
    • setSizeUndefined

      default void setSizeUndefined()
      Description copied from interface: FSizeable
      Clears any size settings.
      Specified by:
      setSizeUndefined in interface FSizeable
      Specified by:
      setSizeUndefined in interface com.vaadin.flow.component.HasSize
    • setWidthUndefined

      default void setWidthUndefined()
      Description copied from interface: FSizeable
      Clears any defined width.
      Specified by:
      setWidthUndefined in interface FSizeable
    • setHeightUndefined

      default void setHeightUndefined()
      Description copied from interface: FSizeable
      Clears any defined height.
      Specified by:
      setHeightUndefined in interface FSizeable