PaddingBottom extends AbstractCssProperty<PaddingBottom> { public void setPercent(final float percent) { value = percent; cssLengthUnit = CssLengthUnit.PER; cssValue = String.valueOf(percent) + cssLengthUnit; if (getStateChangeInformer() != null) { getStateChangeInformer().stateChanged(this); } } PaddingBottom();  PaddingBottom(final String cssValue);  PaddingBottom(final PaddingBottom paddingBottom);  PaddingBottom(final float percent);  PaddingBottom(final float value, final CssLengthUnit cssLengthUnit); PaddingBottom 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 PaddingBottom setCssValue(final String cssValue); void setAsInitial(); void setAsInherit(); static boolean isValid(final String cssValue); static final String INITIAL; static final String INHERIT; }
@Test public void testSetPercent() { { PaddingBottom paddingBottom = new PaddingBottom(); paddingBottom.setPercent(75); assertEquals("75.0%", paddingBottom.getCssValue()); assertEquals(CssLengthUnit.PER, paddingBottom.getUnit()); assertTrue(paddingBottom.getValue() == 75); } }