Border extends AbstractCssProperty<Border> implements StateChangeInformer<Bean> { public Border setBorderWidthValue(final String borderWidthValue) { final StringBuilder cssValueBuilder = new StringBuilder(); if (borderWidthValue != null) { if (INITIAL.equals(borderWidthValue) || INHERIT.equals(borderWidthValue) || !BorderTopWidth.isValid(borderWidthValue)) { throw new InvalidValueException("The given value '" + borderWidthValue + "' is not valid, please try with a valid value like medium/thin/thick or 75px"); } cssValueBuilder.append(borderWidthValue).append(' '); } if (borderStyle != null) { cssValueBuilder.append(borderStyle.getCssValue()).append(' '); } if (borderColorCssValues != null) { cssValueBuilder.append(borderColorCssValues.getValue()).append(' '); } final String trimmedCssValue = StringBuilderUtil .getTrimmedString(cssValueBuilder).toString(); cssValue = trimmedCssValue.isEmpty() ? INHERIT : trimmedCssValue; this.borderWidthValue = borderWidthValue; if (getStateChangeInformer() != null) { getStateChangeInformer().stateChanged(this); } return this; } Border();  Border(final String cssValue);  Border(final Border border); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); @Override Border setCssValue(final String cssValue); static boolean isValid(final String cssValue); void setAsInitial(); void setAsInherit(); BorderColorCssValues getBorderColorCssValues(); BorderStyle getBorderStyle(); Border setBorderWidthValue(final String borderWidthValue); Border setBorderStyle(final BorderStyle borderStyle); Border setBorderColorCssValues(
            final BorderColorCssValues borderColorCssValues); String getBorderWidthValue(); @Override void stateChanged(final Bean stateChangedObject); static final String INITIAL; static final String INHERIT; }
@Test public void testSetBorderWidthValue() { Border border = new Border(); border.setCssValue("thin ridge blue"); border.setBorderWidthValue("thick"); assertEquals("thick ridge blue", border.getCssValue()); assertNotNull(border.getBorderWidthValue()); assertEquals("thick", border.getBorderWidthValue()); }