Source Viewer : WEB-INF/classes/org/apache/click/examples/control/html/cssform/CssForm.java
package org.apache.click.examples.control.html.cssform;
import java.util.List;
import org.apache.click.element.CssImport;
import org.apache.click.extras.control.HtmlForm;
/**
* A custom Form that adds the Html import, "cssform.css", to the page.
*/
public class CssForm extends HtmlForm {
private static final long serialVersionUID = 1L;
public CssForm(String name) {
super(name);
}
@Override
public List getHeadElements() {
if (headElements == null) {
headElements = super.getHeadElements();
headElements.add(new CssImport("/assets/css/cssform.css"));
}
return headElements;
}
}