Constructor and Description |
---|
Size() |
Modifier and Type | Method and Description |
---|---|
abstract float |
getSize()
Returns
Sizeable.getWidth() or Sizeable.getHeight() . |
abstract com.vaadin.server.Sizeable.Unit |
getSizeUnits()
Returns
Sizeable.getWidthUnits() or Sizeable.getHeightUnits() . |
static Hints.Size |
heightOf(com.vaadin.server.Sizeable component)
Provides access to component height.
|
boolean |
isFillParent()
Checks whether the component fills its parent completely.
|
boolean |
isFillParentPartially()
Checks whether the component fills its parent at least partially.
|
boolean |
isPercentage()
Checks whether the component fills some percentage portion of parent.
|
boolean |
isWrapContent()
Checks whether the component wraps its children.
|
Hints.Size |
set100Percent()
Sets the size to 100%.
|
Hints.Size |
setFillParent()
Configures the component to fill its parent completely.
|
Hints.Size |
setHintValue(Variant<?> newValue)
Sets the size based on a hint value.
|
abstract void |
setSize(float size,
com.vaadin.server.Sizeable.Unit unit)
Calls
Sizeable.setWidth(float, com.vaadin.server.Sizeable.Unit) or Sizeable.setHeight(float, com.vaadin.server.Sizeable.Unit) . |
abstract void |
setSize(String size)
Calls
Sizeable.setWidth(String) or Sizeable.setHeight(String) . |
Hints.Size |
setWrapContent()
Configures the component to wrap its children (sets the size to -1 pixels).
|
String |
toString() |
static Hints.Size |
widthOf(com.vaadin.server.Sizeable component)
Provides access to component width.
|
public abstract float getSize()
Sizeable.getWidth()
or Sizeable.getHeight()
.public abstract com.vaadin.server.Sizeable.Unit getSizeUnits()
Sizeable.getWidthUnits()
or Sizeable.getHeightUnits()
.public abstract void setSize(float size, com.vaadin.server.Sizeable.Unit unit)
Sizeable.setWidth(float, com.vaadin.server.Sizeable.Unit)
or Sizeable.setHeight(float, com.vaadin.server.Sizeable.Unit)
.size
- the width or heightunit
- the unit, not null.public abstract void setSize(String size)
Sizeable.setWidth(String)
or Sizeable.setHeight(String)
.size
- the new size, may be null.public static Hints.Size widthOf(com.vaadin.server.Sizeable component)
component
- the component, not null.public static Hints.Size heightOf(com.vaadin.server.Sizeable component)
component
- the component, not null.public boolean isWrapContent()
getSize()
is less than zero.public Hints.Size setWrapContent()
public boolean isFillParent()
public boolean isFillParentPartially()
public Hints.Size setFillParent()
set100Percent()
.public boolean isPercentage()
public Hints.Size set100Percent()
setFillParent()
.public Hints.Size setHintValue(Variant<?> newValue)
newValue
- the new value, not null. May be absent.Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.