Example usage for com.vaadin.ui Label getContentMode

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

Introduction

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

Prototype

public ContentMode getContentMode() 

Source Link

Document

Gets the content mode of the label.

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 . j  a v a2s.c o  m
 * @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;
}