initComponents(window);
initComponentAnnotations();
initEventHandling();
FormLayout layout = new FormLayout(
"10dlu,p,p,100dlu,3dlu,p,p,20dlu,10dlu", "");
DefaultFormBuilder builder = new DefaultFormBuilder(layout);
builder.setLeadingColumnOffset(1);
builder.appendRow(new RowSpec("top:10dlu"));
builder.nextLine();
String metric = article.getMetric();
if(metric!=null){
metric="("+metric+")";
}else{
metric="";
}
if (article != null) {
builder.append(articleName + " - antall:"+metric, textFieldNumberOf);
if (showOrder) {
builder.append("Rekkef�lge:", textFieldOrder);
}
builder.nextLine();
}
if (textFields != null) {
Set<String> labels = textFields.keySet();
for (String label : labels) {
builder.append(label, textFields.get(label));
if (showOrder) {
builder.append("Rekkef�lge:", textFieldDialogOrders
.get(label));
}
builder.nextLine();
}
labels = checkBoxes.keySet();
for (String label : labels) {
builder.append(label, checkBoxes.get(label));
if (showOrder) {
builder.append("Rekkef�lge:", textFieldDialogOrders
.get(label));
}
builder.nextLine();
}
labels = comboBoxes.keySet();
for (String label : labels) {
builder.append(label, comboBoxes.get(label));
if (showOrder) {
builder.append("Rekkef�lge:", textFieldDialogOrders
.get(label));
}
builder.nextLine();
}
}
builder.append(ButtonBarFactory.buildCenteredBar(buttonOk), 8);
builder.appendRow(new RowSpec("top:5dlu"));
return new IconFeedbackPanel(validationResultModel, builder.getPanel());
}