layout.south(layoutOptionalFields());
wrap(layout);
}
private JComponent layoutOptionalFields() {
DataLocationPanelLayout layout = new DataLocationPanelLayout();
transactionIsolationLevelDefiner.addToLayout(layout);
timeoutDefiner.addToLayout(layout);
if (getSourceTarget() == SourceTarget.Source) {
fetchSizeField.addToLayout(layout);
}
connectParamsDefiner.addToLayout(layout);
manualConnectionStringDefiner.addToLayout(layout);
JComponent wrapper = new JPanel();
layout.addToParent(wrapper, null);
InterchangeViewUtils.configurePropertyFields(wrapper);
boolean expanded = !transactionIsolationLevelDefiner.isDefaultLevel() || !fetchSizeField.isDefaultValue() ||
!connectParamsDefiner.isEmpty() || manualConnectionStringDefiner.isSelected();
DropDownPanel dropDown = DataLocationPanelUtils.createOptionsDropDown(wrapper, expanded);
return dropDown.getDisplayer();