void (GuiEditor editor, RadComponent[] components, GridConstraints[] constraintsToAdjust, ComponentDragObject dragObject) { for(int i=0; i<myContainer.getComponentCount(); i++) { if (myContainer.getComponent(i).getId().equals(myInsertBeforeId)) { myInsertIndex = i; break; } } if (myInsertIndex > myContainer.getComponentCount()) { myInsertIndex = myContainer.getComponentCount(); } for(RadComponent component: components) { myContainer.addComponent(component, myInsertIndex); myInsertIndex++; } }