Interface Sizeable

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbsoluteLayout, AbstractComponent, AbstractComponentContainer, AbstractLayout, AbstractOrderedLayout, AbstractSingleComponentContainer, CssLayout, FGrid, FormLayout, FTabSheet, GridLayout, HorizontalLayout, Label, Panel, Table, VerticalLayout

@Deprecated public interface Sizeable extends Serializable
Deprecated.
Use FSizeable instead.
Legacy interface implemented by legacy pack components that may be dynamically resized during runtime.
Author:
Vaadin Ltd.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final float
  • Method Summary

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

  • Method Details

    • getWidth

      float getWidth()
      Deprecated.
      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.
    • getHeight

      float getHeight()
      Deprecated.
      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

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

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

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

      void setWidth(float width, com.vaadin.flow.component.Unit unit)
      Deprecated.
      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

      void setHeight(float height, com.vaadin.flow.component.Unit unit)
      Deprecated.
      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

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

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

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

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

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

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

      void setHeightUndefined()
      Deprecated.
      Clears any defined height.