package com.sebworks.vaadstrap;

import com.vaadin.ui.CssLayout;

/**
 * @author seb
 *
 */
public class Row extends CssLayout {
	
	private String defaultStyle = "row";
	
	public Row() {
		setImmediate(true);
		clearStyles();
	}
	
	/**
	 * Add a column with given styles.
	 * @see {@link ColMod}, {@link ColOffsetMod}, {@link MarginMod}
	 * @param styles
	 * @return the added column
	 */
	public Col addCol(Style...styles){
		Col col = new Col();
		col.addStyles(styles);
		addComponent(col);
		return col;
	}
	
	public Row clearStyles() {
		setStyleName(defaultStyle);
		return this;
	}

	public Row addStyles(Style... styles) {
		for (Style style : styles) {
			addStyleName(style.getStyleName());
		}
		return this;
	}

}

@@ -278,30 +278,23 @@
 see 
-%7B@link ColMod%7D, %7B@link
+ColMod%0A%09 * @see
  Col
@@ -306,17 +306,17 @@
 tMod
-%7D, %7B@link
+%0A%09 * @see
  Mar
@@ -325,27 +325,8 @@
 nMod
-%7D%0A%09 * @param styles
 %0A%09 *

Fix javadoc