ScrollBar.getMinimumValue(bar),
ScrollBar.getMaximumValue(bar),
ScrollBar.getViewSize(bar));
}
else if (newComponent instanceof ScrollList) {
ScrollList sl = (ScrollList)newComponent;
ScrollList orig = (ScrollList)origComponent;
topLevelManager.bindComponent(sl, BindingManager.getDataObjectPath(origComponent),
ElementList.get(orig),
orig.getSelectionModel().getSelectionMode() == ListSelectionModel.SINGLE_SELECTION);
}
else {
topLevelManager.bindComponent(newComponent, BindingManager.getDataObjectPath(origComponent));
}
}