Example usage for com.vaadin.server Sizeable setWidth

List of usage examples for com.vaadin.server Sizeable setWidth

Introduction

In this page you can find the example usage for com.vaadin.server Sizeable setWidth.

Prototype

public void setWidth(float width, Unit unit);

Source Link

Document

Sets the width of the object.

Usage

From source file:com.vaadHL.utl.state.ScreenInfo.java

License:Apache License

/**
 * Changes size of a screen object/*from   w w  w.ja  v  a 2  s  .c  o m*/
 * 
 * @param si
 *            the screen object implementing the {@link Sizeable} interface
 */
public void applyTo(Sizeable si) {
    si.setHeight(getHeight(), getHeightUnits());
    si.setWidth(getWidth(), getWidthUnits());
}