public interface Sizeable extends Serializable
Modifier and Type | Interface and Description |
---|---|
static class |
Sizeable.Unit |
Modifier and Type | Field and Description |
---|---|
static float |
SIZE_UNDEFINED
Deprecated.
As of 7.3, use instead
setSizeUndefined() ,
setHeightUndefined() and
setWidthUndefined() |
static Sizeable.Unit |
UNITS_CM
Deprecated.
As of 7.0, use
Sizeable.Unit.CM instead |
static Sizeable.Unit |
UNITS_EM
Deprecated.
As of 7.0, use
Sizeable.Unit.EM instead |
static Sizeable.Unit |
UNITS_EX
Deprecated.
As of 7.0, use
Sizeable.Unit.EX instead |
static Sizeable.Unit |
UNITS_INCH
Deprecated.
As of 7.0, use
Sizeable.Unit.INCH instead |
static Sizeable.Unit |
UNITS_MM
Deprecated.
As of 7.0, use
Sizeable.Unit.MM instead |
static Sizeable.Unit |
UNITS_PERCENTAGE
Deprecated.
As of 7.0, use
Sizeable.Unit.PERCENTAGE instead |
static Sizeable.Unit |
UNITS_PICAS
Deprecated.
As of 7.0, use
Sizeable.Unit.PICAS instead |
static Sizeable.Unit |
UNITS_PIXELS
Deprecated.
As of 7.0, use
Sizeable.Unit.PIXELS instead |
static Sizeable.Unit |
UNITS_POINTS
Deprecated.
As of 7.0, use
Sizeable.Unit.POINTS instead |
Modifier and Type | Method and Description |
---|---|
float |
getHeight()
Gets the height of the object.
|
Sizeable.Unit |
getHeightUnits()
Gets the height property units.
|
float |
getWidth()
Gets the width of the object.
|
Sizeable.Unit |
getWidthUnits()
Gets the width property units.
|
void |
setHeight(float height,
Sizeable.Unit unit)
Sets the height of the object.
|
void |
setHeight(String height)
Sets the height of the component using String presentation.
|
void |
setHeightUndefined()
Clears any defined height
|
void |
setSizeFull()
Sets the size to 100% x 100%.
|
void |
setSizeUndefined()
Clears any size settings.
|
void |
setWidth(float width,
Sizeable.Unit unit)
Sets the width of the object.
|
void |
setWidth(String width)
Sets the width of the component using String presentation.
|
void |
setWidthUndefined()
Clears any defined width
|
@Deprecated static final Sizeable.Unit UNITS_PIXELS
Sizeable.Unit.PIXELS
instead@Deprecated static final Sizeable.Unit UNITS_POINTS
Sizeable.Unit.POINTS
instead@Deprecated static final Sizeable.Unit UNITS_PICAS
Sizeable.Unit.PICAS
instead@Deprecated static final Sizeable.Unit UNITS_EM
Sizeable.Unit.EM
instead@Deprecated static final Sizeable.Unit UNITS_EX
Sizeable.Unit.EX
instead@Deprecated static final Sizeable.Unit UNITS_MM
Sizeable.Unit.MM
instead@Deprecated static final Sizeable.Unit UNITS_CM
Sizeable.Unit.CM
instead@Deprecated static final Sizeable.Unit UNITS_INCH
Sizeable.Unit.INCH
instead@Deprecated static final Sizeable.Unit UNITS_PERCENTAGE
Sizeable.Unit.PERCENTAGE
instead@Deprecated static final float SIZE_UNDEFINED
setSizeUndefined()
,
setHeightUndefined()
and
setWidthUndefined()
float getWidth()
float getHeight()
Sizeable.Unit getWidthUnits()
Sizeable.Unit getHeightUnits()
void setHeight(String height)
height
- in CSS style string representationvoid setWidth(float width, Sizeable.Unit unit)
width
- the width of the object.unit
- the unit used for the width.void setHeight(float height, Sizeable.Unit unit)
height
- the height of the object.unit
- the unit used for the width.void setWidth(String width)
width
- in CSS style string representation, null or empty string to
resetvoid setSizeFull()
void setSizeUndefined()
void setWidthUndefined()
void setHeightUndefined()
Copyright © 2019 Vaadin Ltd. All rights reserved.