Java 类com.intellij.uiDesigner.radComponents.RadLayoutManager 实例源码

项目:intellij-ce-playground    文件:LayoutManagerProperty.java   
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;
}
项目:intellij-ce-playground    文件:LayoutManagerProperty.java   
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);
}
项目:tools-idea    文件:LayoutManagerProperty.java   
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;
}
项目:tools-idea    文件:LayoutManagerProperty.java   
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);
}
项目:consulo-ui-designer    文件:LayoutManagerProperty.java   
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;
}
项目:consulo-ui-designer    文件:LayoutManagerProperty.java   
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);
}