private function applyTextAlignmentToOptions(&$options, $alignment)
	{
		//catch illegal values
		if (!in_array($alignment, self::$LEGAL_ALIGNMENTS)) {
			throw new InvalidConfigException(sprintf('Illegal text alignment value for %s!', self::className()));
		}

		//strip already applied classes classes
		foreach (self::$CSS_CLASSES as $cssClass) Html::removeCssClass($options, $cssClass);

		//apply actual css class
		switch ($alignment) {
			case null:
			case self::TEXT_LEFT:
				if ($this->textAlignLeftClass == null) break;
				Html::addCssClass($options, $this->textAlignLeftClass);
				break;
			case self::TEXT_CENTER:
				if ($this->textAlignCenterClass == null) break;
				Html::addCssClass($options, $this->textAlignCenterClass);
				break;
			case self::TEXT_RIGHT:
				if ($this->textAlignRightClass == null) break;
				Html::addCssClass($options, $this->textAlignRightClass);
				break;
		}
	}