private static void processRootContainerResize( final RadContainer container, final boolean isRow, final int newSize) { final JComponent parentDelegee = container.getDelegee(); Dimension containerSize = parentDelegee.getSize(); if (isRow) { containerSize.height = newSize + parentDelegee.getBounds().y; } else { containerSize.width = newSize + parentDelegee.getBounds().x; } parentDelegee.setSize(containerSize); parentDelegee.revalidate(); }
public void addComponentToContainer( final RadContainer container, final RadComponent component, final int index) { super.addComponentToContainer(container, component, index); container.getDelegee().add(component.getDelegee(), component.getConstraints()); }