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