public void commitValues(final ElementStyleSheet styleSheet) {
    if (centerAlignButton.isSelected()) {
      styleSheet.setStyleProperty(ElementStyleKeys.ALIGNMENT, ElementAlignment.CENTER);
    } else if (rightAlignButton.isSelected()) {
      styleSheet.setStyleProperty(ElementStyleKeys.ALIGNMENT, ElementAlignment.RIGHT);
    } else {
      styleSheet.setStyleProperty(ElementStyleKeys.ALIGNMENT, ElementAlignment.LEFT);
    }

    if (middleAlignButton.isSelected()) {
      styleSheet.setStyleProperty(ElementStyleKeys.VALIGNMENT, ElementAlignment.MIDDLE);
    } else if (bottomAlignButton.isSelected()) {
      styleSheet.setStyleProperty(ElementStyleKeys.VALIGNMENT, ElementAlignment.BOTTOM);
    } else {
      styleSheet.setStyleProperty(ElementStyleKeys.VALIGNMENT, ElementAlignment.TOP);
    }

    styleSheet.setStyleProperty(
        TextStyleKeys.VERTICAL_TEXT_ALIGNMENT, textAlignModel.getSelectedKey());
    styleSheet.setStyleProperty(
        TextStyleKeys.LINEHEIGHT, BorderPropertiesPane.parseLength(lineHeightField.getText()));
    if (wrapTextCheckbox.isSelected()) {
      styleSheet.setStyleProperty(TextStyleKeys.TEXT_WRAP, TextWrap.WRAP);
    } else {
      styleSheet.setStyleProperty(TextStyleKeys.TEXT_WRAP, TextWrap.NONE);
    }

    styleSheet.setStyleProperty(
        TextStyleKeys.WHITE_SPACE_COLLAPSE, whitespaceModel.getSelectedKey());
  }
 public String getExportType() {
   return exportFormatModel.getSelectedKey();
 }