@Override protected void changeLayoutFromGrid( final RadContainer container, final List<RadComponent> contents, final List<Boolean> canRowsGrow, final List<Boolean> canColumnsGrow) { int rowCount = Math.max(1, canRowsGrow.size()); int columnCount = Math.max(1, canColumnsGrow.size()); container.setLayoutManager(this, new GridLayoutManager(rowCount, columnCount)); }
@Override protected void changeLayoutFromIndexed( final RadContainer container, final List<RadComponent> components) { container.setLayoutManager(this, new GridLayoutManager(1, Math.max(1, components.size()))); }