public void setFontSize(String fontSize) {
    double value = StyleHelper.getMeasurementValue(fontSize);
    Style.Unit unit = StyleHelper.getMeasurementUnit(fontSize);

    assert unit != null : "Font size did not contain a unit.";
    setFontSize(value, unit);
  }
 public boolean isOn() {
   return StyleHelper.containsStyle(uiObject.getStyleName(), style);
 }