Package com.webfirmframework.wffweb.css
Class ListStyleImage
java.lang.Object
com.webfirmframework.wffweb.css.core.AbstractCssProperty<ListStyleImage>
com.webfirmframework.wffweb.css.ListStyleImage
- All Implemented Interfaces:
CssProperty
,Serializable
,Cloneable
list-style-image: none|url|initial|inherit;
- Since:
- 1.0.0
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTheauto
will be set as the valueListStyleImage
(ListStyleImage listStyleImage) ListStyleImage
(String cssValue) ListStyleImage
(String value, boolean urlValue) -
Method Summary
Modifier and TypeMethodDescriptiongetUrl()
boolean
static boolean
To check whether the givencssValue
is valid for this class.void
sets as inheritvoid
sets as initialvoid
sets asnone
.setCssValue
(String cssValue) toString()
Methods inherited from class com.webfirmframework.wffweb.css.core.AbstractCssProperty
clone, getStateChangeInformer, isAlreadyInUse, setAlreadyInUse, setStateChangeInformer, toCssString
-
Field Details
-
NONE
- See Also:
-
INITIAL
- See Also:
-
INHERIT
- See Also:
-
-
Constructor Details
-
ListStyleImage
public ListStyleImage()Theauto
will be set as the value -
ListStyleImage
- Parameters:
cssValue
- the css value to set.
-
ListStyleImage
- Parameters:
value
- the css value or url value to set.urlValue
- images/TestImage.png
-
ListStyleImage
- Parameters:
listStyleImage
- theListStyleImage
object from which the cssValue to set.And,null
will throwNullValueException
-
-
Method Details
-
getCssName
- Returns:
- the name portion in style, eg
align-content
for stylealign-content: center
.
-
getCssValue
- Returns:
- the value portion in style, eg
center
for stylealign-content: center
.
-
toString
-
setCssValue
- Specified by:
setCssValue
in classAbstractCssProperty<ListStyleImage>
- Parameters:
cssValue
- the value should be in the format of55px
or95%
.null
is considered as an invalid value and it will throwNullValueException
.- Returns:
- the current object.
- Since:
- 1.0.0
-
setUrl
- Parameters:
url
- eg:- images/Test.png- Returns:
- the current object
- Since:
- 1.0.0
-
getUrl
- Returns:
- the url value set. Or,
null
if it is set with any inbuilt value likeinherit
- Since:
- 1.0.0
-
setAsInitial
public void setAsInitial()sets as initial- Since:
- 1.0.0
-
setAsInherit
public void setAsInherit()sets as inherit- Since:
- 1.0.0
-
setAsNone
public void setAsNone()sets asnone
.- Since:
- 1.0.0
-
hasInbuiltValue
public boolean hasInbuiltValue() -
isValid
To check whether the givencssValue
is valid for this class.- Parameters:
cssValue
-- Returns:
- true if the given
cssValue
is valid for this class. - Since:
- 1.0.0
-