added method setOpacity for all children. and code style.