Border extends AbstractCssProperty<Border> implements StateChangeInformer<Bean> { public Border setBorderStyle(final BorderStyle borderStyle) { if (borderStyle == BorderStyle.INITIAL || borderStyle == BorderStyle.INHERIT) { throw new InvalidValueException("the given borderStyle cannot be " + borderStyle.getCssValue()); } final StringBuilder cssValueBuilder = new StringBuilder(); if (borderWidthValue != null) { 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.borderStyle = borderStyle; 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 testSetBorderStyle() { Border border = new Border(); border.setCssValue("thin ridge blue"); border.setBorderWidthValue("thick"); border.setBorderStyle(BorderStyle.DOUBLE); assertEquals("thick double blue", border.getCssValue()); assertNotNull(border.getBorderStyle()); assertEquals(BorderStyle.DOUBLE, border.getBorderStyle()); }