ToolbarView group = submenu.addGroup();
for (Alignment alignment : asArray(
new Alignment("Left", css.alignLeft(), Paragraph.Alignment.LEFT),
new Alignment("Centre", css.alignCentre(), Paragraph.Alignment.CENTER),
new Alignment("Right", css.alignRight(), Paragraph.Alignment.RIGHT))) {
ToolbarToggleButton b = group.addToggleButton();
new ToolbarButtonViewBuilder()
.setText(alignment.description)
.setIcon(alignment.iconCss)
.applyTo(b, createParagraphApplicationController(b, alignment.style));
}