Interface FSizeable

All Superinterfaces:
Serializable
All Known Subinterfaces:
FAbstractComponent, FAbstractTextField, HasSizeable
All Known Implementing Classes:
AbsoluteLayout, AbstractComponent, AbstractComponentContainer, AbstractField, AbstractLayout, AbstractOrderedLayout, AbstractSingleComponentContainer, CssLayout, CustomComponent, CustomField, FButton, FCheckBox, FComboBox, FDateField, FGrid, FImage, FListSelect, FMenuBar, FormLayout, FPasswordField, FTabSheet, FTextArea, FTextField, FTokenField, FTwinColSelect, GridLayout, HorizontalLayout, Label, Panel, Table, VerticalLayout

public interface FSizeable extends Serializable
Flow compatible Vaadin 7/8 interface for components that have size.
Author:
Vaadin Ltd.
  • 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.
  • Method Details

    • getFWidth

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

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

      default com.vaadin.flow.component.Unit getWidthUnits()
      Gets the width property units.
      Returns:
      units used in width property.
    • getHeightUnits

      default com.vaadin.flow.component.Unit getHeightUnits()
      Gets the height property units.
      Returns:
      units used in height property.
    • setHeight

      default void setHeight(String height)
      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.

      Parameters:
      height - in CSS style string representation
    • setWidth

      default void setWidth(float width, com.vaadin.flow.component.Unit unit)
      Sets the width of the object. Negative number implies unspecified size (terminal is free to set the size).
      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)
      Sets the height of the object. Negative number implies unspecified size (terminal is free to set the size).
      Parameters:
      height - the height of the object.
      unit - the unit used for the width.
    • setWidth

      default void setWidth(String width)
      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.

      Parameters:
      width - in CSS style string representation, null or empty string to reset
    • setSizeFull

      default void setSizeFull()
      Sets the size to 100% x 100%.
    • setWidthFull

      default void setWidthFull()
      Sets the width to 100%.
    • setHeightFull

      default void setHeightFull()
      Sets the height to 100%.
    • setSizeUndefined

      default void setSizeUndefined()
      Clears any size settings.
    • setWidthUndefined

      default void setWidthUndefined()
      Clears any defined width.
    • setHeightUndefined

      default void setHeightUndefined()
      Clears any defined height.