Class AbstractCssProperty<EXTENDEDCLASS extends AbstractCssProperty<EXTENDEDCLASS>>

java.lang.Object
com.webfirmframework.wffweb.css.core.AbstractCssProperty<EXTENDEDCLASS>
All Implemented Interfaces:
CssProperty, Serializable, Cloneable
Direct Known Subclasses:
AnimationIterationCount, BackgroundColor, BackgroundImage, BackgroundSize, Border, BorderBottom, BorderBottomColor, BorderBottomWidth, BorderColor, BorderImageOutset, BorderImageRepeat, BorderImageSlice, BorderImageSource, BorderImageWidth, BorderLeft, BorderLeftColor, BorderLeftWidth, BorderRight, BorderRightColor, BorderRightWidth, BorderSpacing, BorderTop, BorderTopColor, BorderTopWidth, BorderWidth, Bottom, Color, ColumnCount, ColumnGap, ColumnRule, ColumnRuleColor, ColumnRuleWidth, Columns, ColumnWidth, Cursor, CustomCssProperty, Flex, FlexBasis, FlexGrow, FlexShrink, Font, FontFamily, FontSize, FontSizeAdjust, HeightCss, Icon, Left, LetterSpacing, LineHeight, ListStyle, ListStyleImage, Margin, MarginBottom, MarginLeft, MarginRight, MarginTop, MaxHeight, MaxWidth, MinHeight, MinWidth, MozBackgroundSize, MozColumnCount, MozColumnGap, MozColumnRule, MozColumnRuleColor, MozColumnRuleWidth, MozColumnWidth, MozFlex, MozFlexBasis, MozFlexGrow, MozFlexShrink, MsFlex, OBackgroundSize, Opacity, Outline, OutlineColor, OutlineOffset, OutlineWidth, Padding, PaddingBottom, PaddingLeft, PaddingRight, PaddingTop, Perspective, PerspectiveOrigin, Right, Src, Top, UnicodeRange, WebkitBackgroundSize, WebkitColumnCount, WebkitColumnGap, WebkitColumnRule, WebkitColumnRuleColor, WebkitColumnRuleWidth, WebkitColumnWidth, WebkitFlex, WebkitFlexBasis, WebkitFlexGrow, WebkitFlexShrink, WidthCss, WordSpacing

public abstract class AbstractCssProperty<EXTENDEDCLASS extends AbstractCssProperty<EXTENDEDCLASS>> extends Object implements CssProperty
Since:
1.0.0
See Also:
  • Constructor Details

    • AbstractCssProperty

      public AbstractCssProperty()
  • Method Details

    • setCssValue

      public abstract EXTENDEDCLASS setCssValue(String value)
      Parameters:
      value - to set the value portion in style, eg center for style align-content: center.
      Returns:
      the current object.
      Since:
      1.0.0
    • getStateChangeInformer

      public StateChangeInformer<CssProperty> getStateChangeInformer()
      Returns:
      the stateChangeInformer
      Since:
      1.0.0
    • setStateChangeInformer

      public void setStateChangeInformer(StateChangeInformer<CssProperty> stateChangeInformer)
      Parameters:
      stateChangeInformer - the stateChangeInformer to set
      Since:
      1.0.0
    • clone

      Overrides:
      clone in class Object
      Throws:
      CloneNotSupportedException
    • isAlreadyInUse

      public boolean isAlreadyInUse()
      Returns:
      true if the object is already used by Style class.
      Since:
      1.0.0
    • setAlreadyInUse

      public void setAlreadyInUse(boolean alreadyInUse)
      To set whether this object is used by any other object. It also dereferences stateChangeInformer object if the given argument is false.
      Parameters:
      alreadyInUse - the alreadyInUse to set
      Since:
      1.0.0
    • toCssString

      public String toCssString()
      Returns:
      the css string of the property
      Since:
      1.1.2