WebkitFlex extends AbstractCssProperty<WebkitFlex> implements StateChangeInformer<CssProperty> { @Override public void stateChanged(final CssProperty stateChangedObject) { if (stateChangedObject instanceof WebkitFlexGrow) { final WebkitFlexGrow webkitFlexGrow = (WebkitFlexGrow) stateChangedObject; final String cssValue = webkitFlexGrow.getCssValue(); if (WebkitFlexGrow.INITIAL.equals(cssValue) || WebkitFlexGrow.INHERIT.equals(cssValue)) { throw new InvalidValueException( "initial/inherit cannot be set as webkitFlexGrow cssValue"); } this.cssValue = new StringBuilder(webkitFlexGrow.getCssValue()) .append(' ').append(webkitFlexShrink.getCssValue()) .append(' ').append(webkitFlexBasis.getCssValue()) .toString(); } else if (stateChangedObject instanceof WebkitFlexShrink) { final WebkitFlexShrink webkitFlexShrink = (WebkitFlexShrink) stateChangedObject; final String cssValue = webkitFlexShrink.getCssValue(); if (WebkitFlexShrink.INITIAL.equals(cssValue) || WebkitFlexShrink.INHERIT.equals(cssValue)) { throw new InvalidValueException( "initial/inherit cannot be set as webkitFlexShrink cssValue"); } this.cssValue = new StringBuilder(webkitFlexGrow.getCssValue()) .append(' ').append(webkitFlexShrink.getCssValue()) .append(' ').append(webkitFlexBasis.getCssValue()) .toString(); } else if (stateChangedObject instanceof WebkitFlexBasis) { final WebkitFlexBasis webkitFlexBasis = (WebkitFlexBasis) stateChangedObject; final String cssValue = webkitFlexBasis.getCssValue(); if (WebkitFlexBasis.INITIAL.equals(cssValue) || WebkitFlexBasis.INHERIT.equals(cssValue)) { throw new InvalidValueException( "initial/inherit cannot be set as webkitFlexBasis cssValue"); } this.cssValue = new StringBuilder(webkitFlexGrow.getCssValue()) .append(' ').append(webkitFlexShrink.getCssValue()) .append(' ').append(webkitFlexBasis.getCssValue()) .toString(); } } WebkitFlex();  WebkitFlex(final String cssValue);  WebkitFlex(final WebkitFlex webkitFlex); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); @Override WebkitFlex setCssValue(final String cssValue); static boolean isValid(final String cssValue); void setAsInitial(); void setAsInherit(); void setAsAuto(); WebkitFlexBasis getWebkitFlexBasis(); WebkitFlexShrink getWebkitFlexShrink(); WebkitFlexGrow getWebkitFlexGrow(); WebkitFlex setWebkitFlexGrow(final WebkitFlexGrow webkitFlexGrow); WebkitFlex setWebkitFlexShrink(
            final WebkitFlexShrink webkitFlexShrink); WebkitFlex setWebkitFlexBasis(
            final WebkitFlexBasis webkitFlexBasis); @Override void stateChanged(final CssProperty stateChangedObject); static final String INITIAL; static final String INHERIT; static final String AUTO; }
@Test public void testStateChanged() { }