List of usage examples for com.vaadin.ui Label getWidthUnits
@Override
public Unit getWidthUnits()
From source file:org.ripla.web.controllers.RiplaBody.java
License:Open Source License
/** * We have to clone the separator label defined in the skin. * // w w w .ja v a2 s .c om * @param inSeparator * Label * @return {@link Label} the cloned label */ private Label getSeparator(final Label inSeparator) { final Label out = new Label(inSeparator.getValue().toString(), inSeparator.getContentMode()); out.setWidth(inSeparator.getWidth(), inSeparator.getWidthUnits()); out.setStyleName(inSeparator.getStyleName()); return out; }