field.setRequired(false);
return field;
}
private void layoutComponents() {
TwoColumnPanel grid = new TwoColumnPanel();
String caption = Strings.get("Page.Caption.Restrictions");
if (caption != null && caption.length() > 0) {
grid.addRow(TextStyles.InfoText.makeLabel(caption));
}
grid.addRow(InputFieldFactory.getCapsule(delayField), null);
Box capsule = Box.createHorizontalBox();
capsule.add(dataLimitField.getInputComponent());
capsule.add(Box.createHorizontalStrut(10));
capsule.add(sizeUnitCombo);
JComponent sizeComponent = InputFieldFactory.getLabeledComponent(capsule,
dataLimitField.getLabel(), InputFieldFactory.VERTICAL);
grid.addRow(sizeComponent);
setLayout(new FlowLayout(FlowLayout.LEFT));
grid.addToParent(getUi(), null);
UiUtils.setOpaqueRecursivelySkipDefaults(getUi(), false);
}