Package com.vaadin.featurepack.server
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
Junction Interface for components that implement Vaadin 7/8 Sizeable and
Flow's HasSize. Flow's default implementation always yields.
-
Method Summary
Modifier and TypeMethodDescriptiondefault floatGets the height of the object.default floatGets the width of the object.default com.vaadin.flow.component.UnitGets the height property units.default com.vaadin.flow.component.UnitGets the width property units.default voidsetHeight(float height, com.vaadin.flow.component.Unit unit) Sets the height of the object.default voidSets the height of the component using String presentation.default voidSets the height to 100%.default voidClears any defined height.default voidSets the size to 100% x 100%.default voidClears any size settings.default voidsetWidth(float width, com.vaadin.flow.component.Unit unit) Sets the width of the object.default voidSets the width of the component using String presentation.default voidSets the width to 100%.default voidClears any defined width.Methods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods 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:FSizeableGets the width of the object. Negative number implies unspecified size (terminal is free to set the size). -
getFHeight
default float getFHeight()Description copied from interface:FSizeableGets the height of the object. Negative number implies unspecified size (terminal is free to set the size).- Specified by:
getFHeightin interfaceFSizeable- Returns:
- height of the object in units specified by heightUnits property.
-
getWidthUnits
default com.vaadin.flow.component.Unit getWidthUnits()Description copied from interface:FSizeableGets the width property units.- Specified by:
getWidthUnitsin interfaceFSizeable- Returns:
- units used in width property.
-
getHeightUnits
default com.vaadin.flow.component.Unit getHeightUnits()Description copied from interface:FSizeableGets the height property units.- Specified by:
getHeightUnitsin interfaceFSizeable- Returns:
- units used in height property.
-
setHeight
Description copied from interface:FSizeableSets 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.
-
setWidth
default void setWidth(float width, com.vaadin.flow.component.Unit unit) Description copied from interface:FSizeableSets the width of the object. Negative number implies unspecified size (terminal is free to set the size). -
setHeight
default void setHeight(float height, com.vaadin.flow.component.Unit unit) Description copied from interface:FSizeableSets the height of the object. Negative number implies unspecified size (terminal is free to set the size). -
setWidth
Description copied from interface:FSizeableSets 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.
-
setSizeFull
default void setSizeFull()Description copied from interface:FSizeableSets the size to 100% x 100%.- Specified by:
setSizeFullin interfaceFSizeable- Specified by:
setSizeFullin interfacecom.vaadin.flow.component.HasSize
-
setWidthFull
default void setWidthFull()Description copied from interface:FSizeableSets the width to 100%.- Specified by:
setWidthFullin interfaceFSizeable- Specified by:
setWidthFullin interfacecom.vaadin.flow.component.HasSize
-
setHeightFull
default void setHeightFull()Description copied from interface:FSizeableSets the height to 100%.- Specified by:
setHeightFullin interfaceFSizeable- Specified by:
setHeightFullin interfacecom.vaadin.flow.component.HasSize
-
setSizeUndefined
default void setSizeUndefined()Description copied from interface:FSizeableClears any size settings.- Specified by:
setSizeUndefinedin interfaceFSizeable- Specified by:
setSizeUndefinedin interfacecom.vaadin.flow.component.HasSize
-
setWidthUndefined
default void setWidthUndefined()Description copied from interface:FSizeableClears any defined width.- Specified by:
setWidthUndefinedin interfaceFSizeable
-
setHeightUndefined
default void setHeightUndefined()Description copied from interface:FSizeableClears any defined height.- Specified by:
setHeightUndefinedin interfaceFSizeable
-