LetterSpacing extends AbstractCssProperty<LetterSpacing> { public void setPercent(final float percent) { value = percent; cssLengthUnit = CssLengthUnit.PER; cssValue = String.valueOf(percent) + cssLengthUnit; if (getStateChangeInformer() != null) { getStateChangeInformer().stateChanged(this); } } LetterSpacing();  LetterSpacing(final String cssValue);  LetterSpacing(final LetterSpacing letterSpacing);  LetterSpacing(final float percent);  LetterSpacing(final float value, final CssLengthUnit cssLengthUnit); LetterSpacing setValue(final float value,
            final CssLengthUnit cssLengthUnit); void setPercent(final float percent); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); Float getValue(); CssLengthUnit getUnit(); @Override LetterSpacing setCssValue(final String cssValue); void setAsInitial(); void setAsInherit(); void setAsNormal(); static boolean isValid(final String cssValue); static final String NORMAL; static final String INITIAL; static final String INHERIT; }
@Test public void testSetPercent() { { LetterSpacing letterSpacing = new LetterSpacing(); letterSpacing.setPercent(75); assertEquals("75.0%", letterSpacing.getCssValue()); assertEquals(CssLengthUnit.PER, letterSpacing.getUnit()); assertTrue(letterSpacing.getValue() == 75); } }