public String getValue(RadContainer component) { RadContainer container = component; while(container != null) { final RadLayoutManager layoutManager = container.getLayoutManager(); if (layoutManager != null) { return layoutManager.getName(); } container = container.getParent(); } return UIFormXmlConstants.LAYOUT_INTELLIJ; }
protected void setValueImpl(RadContainer component, String value) throws Exception { final RadLayoutManager oldLayout = component.getLayoutManager(); if (oldLayout != null && Comparing.equal(oldLayout.getName(), value)) { return; } RadLayoutManager newLayoutManager = LayoutManagerRegistry.createLayoutManager(value); newLayoutManager.changeContainerLayout(component); }