BorderLeft extends AbstractCssProperty<BorderLeft> implements StateChangeInformer<CssProperty> { public BorderLeft setBorderLeftStyle( final BorderLeftStyle borderLeftStyle) { final StringBuilder cssValueBuilder = new StringBuilder(); if (borderLeftWidth != null) { cssValueBuilder.append(borderLeftWidth.getCssValue()).append(' '); } if (borderLeftStyle != null) { cssValueBuilder.append(borderLeftStyle.getCssValue()).append(' '); } if (borderLeftColor != null) { cssValueBuilder.append(borderLeftColor.getCssValue()).append(' '); } final String trimmedCssValue = StringBuilderUtil .getTrimmedString(cssValueBuilder).toString(); cssValue = trimmedCssValue.isEmpty() ? INHERIT : trimmedCssValue; this.borderLeftStyle = borderLeftStyle; if (getStateChangeInformer() != null) { getStateChangeInformer().stateChanged(this); } return this; } BorderLeft();  BorderLeft(final String cssValue);  BorderLeft(final BorderLeft borderLeft); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); @Override BorderLeft setCssValue(final String cssValue); static boolean isValid(final String cssValue); void setAsInitial(); void setAsInherit(); BorderLeftColor getBorderLeftColor(); BorderLeftStyle getBorderLeftStyle(); BorderLeftWidth getBorderLeftWidth(); BorderLeft setBorderLeftWidth(
            final BorderLeftWidth borderLeftWidth); BorderLeft setBorderLeftStyle(
            final BorderLeftStyle borderLeftStyle); BorderLeft setBorderLeftColor(
            final BorderLeftColor borderLeftColor); @Override void stateChanged(final CssProperty stateChangedObject); static final String INITIAL; static final String INHERIT; }
@Test public void testSetBorderLeftStyle() { BorderLeft border = new BorderLeft(); border.setCssValue("thick solid green"); assertEquals("thick solid green", border.getCssValue()); border.setBorderLeftStyle(null); assertEquals("thick green", border.getCssValue()); border.setBorderLeftStyle(BorderLeftStyle.GROOVE); assertEquals("thick groove green", border.getCssValue()); border.setCssValue("thick red"); assertNull(border.getBorderLeftStyle()); assertEquals("thick red", border.getCssValue()); }