component.setPosition(box.x, box.y);
component.setSize(box.width, box.height);
}
private BorderLayoutEvent createBorderLaoutEvent(ContentPanel panel) {
BorderLayoutEvent event = new BorderLayoutEvent(container, this);
event.setPanel(panel);
LayoutData data = ComponentHelper.getLayoutData(panel);
if (data != null && data instanceof BorderLayoutData) {
event.setRegion(((BorderLayoutData) data).getRegion());
}
return event;
}