List of usage examples for com.vaadin.server Sizeable getHeight
public float getHeight();
From source file:com.vaadHL.utl.state.ScreenInfo.java
License:Apache License
/** * Gets size info from a screen object/* ww w. java 2 s . c om*/ * * @param si * si the screen object implementing the {@link Sizeable} * interface */ public void sizeFrom(Sizeable si) { height = si.getHeight(); heightUnits = si.getHeightUnits(); width = si.getWidth(); widthUnits = si.getWidthUnits(); }
From source file:org.lunifera.runtime.web.vaadin.databinding.component.internal.SizeableHeightProperty.java
License:Open Source License
protected Object doGetValue(Object source) { Sizeable component = (Sizeable) source; Unit heightUnit = component.getHeightUnits(); if (heightUnit == null) { heightUnit = Unit.PIXELS;/*from w w w. j av a 2 s . co m*/ } return String.format("%s%s", Float.toString(component.getHeight()), heightUnit.getSymbol()); }