void (RadComponent component, boolean horizontal) { CellConstraints cc = (CellConstraints) component.getCustomLayoutConstraints(); if (horizontal) { cc.hAlign = CellConstraints.DEFAULT; } else { cc.vAlign = CellConstraints.DEFAULT; } updateConstraints(component); }