Example usage for com.vaadin.ui Label getWidthUnits

List of usage examples for com.vaadin.ui Label getWidthUnits

Introduction

In this page you can find the example usage for com.vaadin.ui Label getWidthUnits.

Prototype

@Override
    public Unit getWidthUnits() 

Source Link

Usage

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;
}