return true;
}
public boolean drop(Point p) {
drag(p);
CompositeAdapter parent = (CompositeAdapter) WidgetAdapter.getWidgetAdapter(container);
parent.clearAllSelected();
boolean success = true;
if (forbid != null) {
for (int i = 0; i < forbid.size(); i++) {
boolean fb = forbid.get(i).booleanValue();
if (fb) {
Toolkit.getDefaultToolkit().beep();
success = false;
} else {
WidgetAdapter todrop = parent.getDropWidget().get(i);
if (constraints == null || constraints.get(i) == null) {
container.add(todrop.getParentContainer());
} else {
if (!constraints.get(i).equals(BorderLayout.CENTER)) {
Component drop = todrop.getParentContainer();
Dimension pref = drop.getPreferredSize();
if (pref.width == 0 || pref.height == 0)
drop.setPreferredSize(drop.getSize());
}
container.add(todrop.getParentContainer(), constraints.get(i));
}
todrop.setSelected(true);
}
}
}
parent.getRootAdapter().getWidget().validate();
placement = null;
constraints = null;
forbid = null;
return success;
}