@Override
    public void stateChanged(final CssProperty stateChangedObject) {

        if (stateChangedObject instanceof PaddingTop) {
            final PaddingTop paddingTop = (PaddingTop) stateChangedObject;
            if (PaddingTop.INITIAL.equals(paddingTop.getCssValue())
                    || PaddingTop.INHERIT.equals(paddingTop.getCssValue())) {
                throw new InvalidValueException(
                        "paddingTop cannot have initial/inherit as its cssValue");
            }
        } else if (stateChangedObject instanceof PaddingRight) {
            final PaddingRight paddingRight = (PaddingRight) stateChangedObject;
            if (PaddingRight.INITIAL.equals(paddingRight.getCssValue())
                    || PaddingRight.INHERIT
                            .equals(paddingRight.getCssValue())) {
                throw new InvalidValueException(
                        "paddingRight cannot have initial/inherit as its cssValue");
            }
        } else if (stateChangedObject instanceof PaddingBottom) {
            final PaddingBottom paddingBottom = (PaddingBottom) stateChangedObject;
            if (PaddingBottom.INITIAL.equals(paddingBottom.getCssValue())
                    || PaddingBottom.INHERIT
                            .equals(paddingBottom.getCssValue())) {
                throw new InvalidValueException(
                        "paddingBottom cannot have initial/inherit as its cssValue");
            }
        } else if (stateChangedObject instanceof PaddingLeft) {
            final PaddingLeft paddingLeft = (PaddingLeft) stateChangedObject;
            if (PaddingLeft.INITIAL.equals(paddingLeft.getCssValue())
                    || PaddingLeft.INHERIT.equals(paddingLeft.getCssValue())) {
                throw new InvalidValueException(
                        "paddingLeft cannot have initial/inherit as its cssValue");
            }
        }

        assignProducedCssValue(paddingTop, paddingRight, paddingBottom,
                paddingLeft);

    }
@Override
    public void stateChanged(final CssProperty stateChangedObject) {

        if (stateChangedObject instanceof PaddingTop) {
            final PaddingTop paddingTop = (PaddingTop) stateChangedObject;
            if (PaddingTop.INITIAL.equals(paddingTop.getCssValue())
                    || PaddingTop.INHERIT.equals(paddingTop.getCssValue())) {
                throw new InvalidValueException(
                        "paddingTop cannot have initial/inherit as its cssValue");
            }
        } else if (stateChangedObject instanceof PaddingRight) {
            final PaddingRight paddingRight = (PaddingRight) stateChangedObject;
            if (PaddingRight.INITIAL.equals(paddingRight.getCssValue())
                    || PaddingRight.INHERIT
                            .equals(paddingRight.getCssValue())) {
                throw new InvalidValueException(
                        "paddingRight cannot have initial/inherit as its cssValue");
            }
        } else if (stateChangedObject instanceof PaddingBottom) {
            final PaddingBottom paddingBottom = (PaddingBottom) stateChangedObject;
            if (PaddingBottom.INITIAL.equals(paddingBottom.getCssValue())
                    || PaddingBottom.INHERIT
                            .equals(paddingBottom.getCssValue())) {
                throw new InvalidValueException(
                        "paddingBottom cannot have initial/inherit as its cssValue");
            }
        } else if (stateChangedObject instanceof PaddingLeft) {
            final PaddingLeft paddingLeft = (PaddingLeft) stateChangedObject;
            if (PaddingLeft.INITIAL.equals(paddingLeft.getCssValue())
                    || PaddingLeft.INHERIT.equals(paddingLeft.getCssValue())) {
                throw new InvalidValueException(
                        "paddingLeft cannot have initial/inherit as its cssValue");
            }
        }

        assignProducedCssValue(paddingTop, paddingRight, paddingBottom,
                paddingLeft);

    }
@ Override public void stateChanged ( final CssProperty stateChangedObject ) { if ( stateChangedObject instanceof PaddingTop ) { final PaddingTop paddingTop = ( PaddingTop ) stateChangedObject ; if ( PaddingTop . INITIAL . equals ( paddingTop . getCssValue ( ) ) || PaddingTop . INHERIT . equals ( paddingTop . getCssValue ( ) ) ) { throw new InvalidValueException ( "paddingTop cannot have initial/inherit as its cssValue" ) ; } } else if ( stateChangedObject instanceof PaddingRight ) { final PaddingRight paddingRight = ( PaddingRight ) stateChangedObject ; if ( PaddingRight . INITIAL . equals ( paddingRight . getCssValue ( ) ) || PaddingRight . INHERIT . equals ( paddingRight . getCssValue ( ) ) ) { throw new InvalidValueException ( "paddingRight cannot have initial/inherit as its cssValue" ) ; } } else if ( stateChangedObject instanceof PaddingBottom ) { final PaddingBottom paddingBottom = ( PaddingBottom ) stateChangedObject ; if ( PaddingBottom . INITIAL . equals ( paddingBottom . getCssValue ( ) ) || PaddingBottom . INHERIT . equals ( paddingBottom . getCssValue ( ) ) ) { throw new InvalidValueException ( "paddingBottom cannot have initial/inherit as its cssValue" ) ; } } else if ( stateChangedObject instanceof PaddingLeft ) { final PaddingLeft paddingLeft = ( PaddingLeft ) stateChangedObject ; if ( PaddingLeft . INITIAL . equals ( paddingLeft . getCssValue ( ) ) || PaddingLeft . INHERIT . equals ( paddingLeft . getCssValue ( ) ) ) { throw new InvalidValueException ( "paddingLeft cannot have initial/inherit as its cssValue" ) ; } } assignProducedCssValue ( paddingTop , paddingRight , paddingBottom , paddingLeft ) ; }
/*
(non-Javadoc)

@see
com.webfirmframework.wffweb.informer.StateChangeInformer#stateChanged(
java.lang .Object)
/ * ( non - Javadoc )