// Формирует список MarginConstraints
 protected final void gatherConstraints() {
   selectedConstraints = new ArrayList<>();
   for (RADVisualComponent<?> vc : selected) {
     LayoutSupportDelegate lsd = vc.getParentLayoutSupport().getLayoutDelegate();
     assert lsd instanceof MarginLayoutSupport;
     MarginLayoutConstraints mlc =
         (MarginLayoutConstraints) lsd.getConstraints(vc.getComponentIndex());
     selectedConstraints.add(mlc);
   }
 }
Пример #2
0
 public static LayoutConstraints<?> storeConstraints(RADVisualComponent<?> radComp) {
   LayoutSupportManager layoutSupport = radComp.getParentLayoutSupport();
   if (layoutSupport != null) {
     LayoutConstraints<?> constr = layoutSupport.getConstraints(radComp);
     if (constr != null) {
       radComp.setLayoutConstraints(layoutSupport.getLayoutDelegate().getClass(), constr);
     }
     return constr;
   } else {
     return null;
   }
 }