BorderBottom extends AbstractCssProperty<BorderBottom> implements StateChangeInformer<CssProperty> { public BorderBottom setBorderBottomStyle( final BorderBottomStyle borderBottomStyle) { final StringBuilder cssValueBuilder = new StringBuilder(); if (borderBottomWidth != null) { cssValueBuilder.append(borderBottomWidth.getCssValue()).append(' '); } if (borderBottomStyle != null) { cssValueBuilder.append(borderBottomStyle.getCssValue()).append(' '); } if (borderBottomColor != null) { cssValueBuilder.append(borderBottomColor.getCssValue()).append(' '); } final String trimmedCssValue = StringBuilderUtil .getTrimmedString(cssValueBuilder).toString(); cssValue = trimmedCssValue.isEmpty() ? INHERIT : trimmedCssValue; this.borderBottomStyle = borderBottomStyle; if (getStateChangeInformer() != null) { getStateChangeInformer().stateChanged(this); } return this; } BorderBottom();  BorderBottom(final String cssValue);  BorderBottom(final BorderBottom borderBottom); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); @Override BorderBottom setCssValue(final String cssValue); static boolean isValid(final String cssValue); void setAsInitial(); void setAsInherit(); BorderBottomColor getBorderBottomColor(); BorderBottomStyle getBorderBottomStyle(); BorderBottomWidth getBorderBottomWidth(); BorderBottom setBorderBottomWidth(
            final BorderBottomWidth borderBottomWidth); BorderBottom setBorderBottomStyle(
            final BorderBottomStyle borderBottomStyle); BorderBottom setBorderBottomColor(
            final BorderBottomColor borderBottomColor); @Override void stateChanged(final CssProperty stateChangedObject); static final String INITIAL; static final String INHERIT; }
@Test public void testSetBorderBottomStyle() { BorderBottom border = new BorderBottom(); border.setCssValue("thick solid green"); assertEquals("thick solid green", border.getCssValue()); border.setBorderBottomStyle(null); assertEquals("thick green", border.getCssValue()); border.setBorderBottomStyle(BorderBottomStyle.GROOVE); assertEquals("thick groove green", border.getCssValue()); border.setCssValue("thick red"); assertNull(border.getBorderBottomStyle()); assertEquals("thick red", border.getCssValue()); }