// interfaces checked first.
// If item is action.
if (items[i] instanceof IActionFormItem) {
// Item type casting.
IActionFormItem actionFormItem = (IActionFormItem) items[i];
// If controls must be small.
if (actionFormItem.getSize() == FormItemSize.Small) {
// Creating control.
ActionButtonControl ctrl = new ActionButtonControl(
this.parentWindow, actionFormItem.getAction(),
this.updateControlListenerer);
// Binding row to control.
ctrl.bind(dataRow, null);
addedControl = ctrl;
} else {
// Creating control.
ActionSliderControl ctrl = new ActionSliderControl(
this.parentWindow, actionFormItem.getAction(),
this.updateControlListenerer);
// Binding row to control.
ctrl.bind(dataRow, null);
addedControl = ctrl;