Java 类com.intellij.uiDesigner.lw.FormLayoutSerializer 实例源码

项目:intellij-ce-playground    文件:RadFormLayoutManager.java   
public void setAlignment(RadComponent component, boolean horizontal, int alignment) {
  CellConstraints cc = (CellConstraints) component.getCustomLayoutConstraints();
  if (horizontal) {
    cc.hAlign = FormLayoutSerializer.ourHorizontalAlignments [alignment];
  }
  else {
    cc.vAlign = FormLayoutSerializer.ourVerticalAlignments [alignment];
  }
  updateConstraints(component);
}
项目:tools-idea    文件:RadFormLayoutManager.java   
public void setAlignment(RadComponent component, boolean horizontal, int alignment) {
  CellConstraints cc = (CellConstraints) component.getCustomLayoutConstraints();
  if (horizontal) {
    cc.hAlign = FormLayoutSerializer.ourHorizontalAlignments [alignment];
  }
  else {
    cc.vAlign = FormLayoutSerializer.ourVerticalAlignments [alignment];
  }
  updateConstraints(component);
}
项目:consulo-ui-designer    文件:RadFormLayoutManager.java   
public void setAlignment(RadComponent component, boolean horizontal, int alignment) {
  CellConstraints cc = (CellConstraints) component.getCustomLayoutConstraints();
  if (horizontal) {
    cc.hAlign = FormLayoutSerializer.ourHorizontalAlignments [alignment];
  }
  else {
    cc.vAlign = FormLayoutSerializer.ourVerticalAlignments [alignment];
  }
  updateConstraints(component);
}