buttons(container);
}
private void typography(CssLayout container) {
for (int i = 1; i <= 6; i++) {
Label header = new Label("Bootstrap heading <h" + i + ">");
header.addStyleName(Bootstrap.Typography.valueOf("H" + i)
.styleName());
container.addComponent(header);
}
Label text = new Label(
"Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.");
text.addStyleName(Bootstrap.Typography.BODYCOPY.styleName());
container.addComponent(text);
text = new Label(
"Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec ullamcorper nulla non metus auctor fringilla.");
text.addStyleName(Bootstrap.Typography.BODYCOPY.styleName());
container.addComponent(text);
text = new Label(
"Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.");
text.addStyleName(Bootstrap.Typography.BODYCOPY.styleName());
container.addComponent(text);
text = new Label(
"Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.");
text.addStyleName(Bootstrap.Typography.LEAD.styleName());
container.addComponent(text);
text = new Label(
"Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.");
text.addStyleName(Bootstrap.Typography.SMALL.styleName());
container.addComponent(text);
text = new Label("Left aligned text");
text.addStyleName(Bootstrap.Typography.TEXT_LEFT.styleName());
container.addComponent(text);
text = new Label("Center aligned text");
text.addStyleName(Bootstrap.Typography.TEXT_CENTER.styleName());
container.addComponent(text);
text = new Label("Right aligned text");
text.addStyleName(Bootstrap.Typography.TEXT_RIGHT.styleName());
container.addComponent(text);
// Colors
text = new Label(
"Muted. Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.");
text.addStyleName(Bootstrap.Typography.TEXT_MUTED.styleName());
container.addComponent(text);
text = new Label(
"Primary. Nullam id dolor id nibh ultricies vehicula ut id elit.");
text.addStyleName(Bootstrap.Typography.TEXT_PRIMARY.styleName());
container.addComponent(text);
text = new Label(
"Warning. Nullam id dolor id nibh ultricies vehicula ut id elit.");
text.addStyleName(Bootstrap.Typography.TEXT_WARNING.styleName());
container.addComponent(text);
text = new Label(
"Danger. Nullam id dolor id nibh ultricies vehicula ut id elit.");
text.addStyleName(Bootstrap.Typography.TEXT_DANGER.styleName());
container.addComponent(text);
text = new Label(
"Success. Nullam id dolor id nibh ultricies vehicula ut id elit.");
text.addStyleName(Bootstrap.Typography.TEXT_SUCCESS.styleName());
container.addComponent(text);
text = new Label(
"Info. Nullam id dolor id nibh ultricies vehicula ut id elit.");
text.addStyleName(Bootstrap.Typography.TEXT_INFO.styleName());
container.addComponent(text);
}