void (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); }