public Row(final EMaterialType materialType) {
type = materialType;
goodsIcon = new UIPanel();
goodsIcon.setBackground(materialType.getIcon());
lblQuantity = new Label(Labels.getString(Integer.toString(quantity)), EFontSize.NORMAL);
IPositionSupplier positionSupplier = () -> position;
Button upButton = new SetMaterialProductionButton(positionSupplier, type, SetMaterialProductionAction.EMaterialProductionType.INCREASE);
Button downButton = new SetMaterialProductionButton(positionSupplier, type, SetMaterialProductionAction.EMaterialProductionType.DECREASE);
arrows = new UIPanel();
arrows.setBackground(arrowsImageLink);
arrows.addChild(upButton, 0f, 0.5f, 1f, 1f);
arrows.addChild(downButton, 0f, 0f, 1f, 0.5f);
barFill = new ActionProvidedBarFill(fillForClick -> new SetMaterialProductionAction(position, materialType, SetMaterialProductionAction.EMaterialProductionType.SET_RATIO, fillForClick), Labels.getName(materialType, false) + "-production-barfill");
float left = 0;
addChild(goodsIcon, left, 0f, left += iconWidth, 1f);
addChild(lblQuantity, left, quantityTextMarginV, left += quantityTextWidth, 1f - quantityTextMarginV);
addChild(arrows, left, 0f, left += arrowsWidth, 1f);
addChild(barFill, left + barPaddingLeft, barMarginV, 1f, 1f - barMarginV);
}