TextBoxItem pattern = new TextBoxItem("pattern", "Pattern");
TextBoxItem dlQ = new TextBoxItem("deadLetterQueue", "Dead Letter Queue");
TextBoxItem expQ= new TextBoxItem("expiryQueue", "Expiry Queue");
NumberBoxItem redelivery = new NumberBoxItem("redeliveryDelay", "Redelivery Delay");
form.setFields(pattern, dlQ, expQ, redelivery);
// defaults
AddressingPattern defaultPattern = findDefaultPattern();
if(defaultPattern!=null) {
dlQ.setValue(defaultPattern.getDeadLetterQueue());
expQ.setValue(defaultPattern.getExpiryQueue());
redelivery.setValue(defaultPattern.getRedeliveryDelay());
}
layout.add(form.asWidget());
DialogueOptions options = new DialogueOptions(
new ClickHandler() {