Example usage for org.apache.wicket.extensions.markup.html.tabs TabbedPanel add

List of usage examples for org.apache.wicket.extensions.markup.html.tabs TabbedPanel add

Introduction

In this page you can find the example usage for org.apache.wicket.extensions.markup.html.tabs TabbedPanel add.

Prototype

public MarkupContainer add(final Component... children) 

Source Link

Document

Adds the child component(s) to this container.

Usage

From source file:org.eknet.wicket.commons.components.tab.TabPanelBuilder.java

License:Open Source License

@NotNull
@Override//from w  ww.  j  a  va 2s . co m
public TabbedPanel get(@NotNull String id) {
    TabbedPanel panel;
    if (ajax) {
        panel = new StyledAjaxTabbedPanel(id, tabs, style);
    } else {
        panel = new StyledTabbedPanel(id, tabs, style);
    }
    if (addtionalCssClasses != null) {
        panel.add(new AttributeAppender("class", addtionalCssClasses));
    }
    if (styleCss != null) {
        panel.add(new AttributeModifier("style", styleCss));
    }
    return panel;
}