// Set the style.
builder.setElementDetails("menuitem", null,
StylesBuilder.getInitialValueStyles());
// Set the href.
builder.setHref(new LiteralLinkAssetReference("href1.xml"));
// Set the pane.
builder.setPane(ITEM1_PANE);
// Create a plain text label.
builder.startLabel();
builder.startText();
// Set the text.
buffer = new TestDOMOutputBuffer();
buffer.writeText("item 1");
builder.setText(buffer);
builder.endText();
builder.endLabel();
builder.endMenuItem();
// Create the second menu item explicitly targeted at a different pane.
builder.startMenuItem();
// Set the style.
builder.setElementDetails("menuitem", null,
StylesBuilder.getInitialValueStyles());
// Set the href.
builder.setHref(new LiteralLinkAssetReference("href2.xml"));
// Set the pane.
builder.setPane(ITEM2_PANE);
// Create a plain text label.