blob: 33696b434e16d927dcf8d6f2199b69b03d81fbcf [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010-2015 BSI Business Systems Integration AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* BSI Business Systems Integration AG - initial API and implementation
******************************************************************************/
package org.eclipse.scout.commons.html.internal;
import java.util.List;
import org.eclipse.scout.commons.html.IHtmlTable;
import org.eclipse.scout.commons.html.IHtmlTableRow;
/**
* Builder for a html table.
*
* @since 6.0 (backported)
*/
public class HtmlTableBuilder extends HtmlNodeBuilder implements IHtmlTable {
public HtmlTableBuilder(List<IHtmlTableRow> rows) {
super("table", rows);
}
/**
* Add a css class
*/
@Override
public IHtmlTable cssClass(CharSequence cssClass) {
return (IHtmlTable) super.cssClass(cssClass);
}
/**
* Add a css style
*/
@Override
public IHtmlTable style(CharSequence style) {
return (IHtmlTable) super.style(style);
}
/**
* Add an application local link
*
* @param ref
* path to identify what is the link referring to.
*/
@Override
public IHtmlTable appLink(CharSequence ref) {
return (IHtmlTable) super.appLink(ref);
}
@Override
public IHtmlTable addAttribute(String name, CharSequence value) {
return (IHtmlTable) super.addAttribute(name, value);
}
}