Package org.javlo.component.image
Class ImageTitleBean
- java.lang.Object
-
- org.javlo.component.image.ImageTitleBean
-
- All Implemented Interfaces:
Serializable
,IImageTitle
public class ImageTitleBean extends Object implements IImageTitle, Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ImageTitleBean
EMPTY_BEAN
-
Fields inherited from interface org.javlo.component.image.IImageTitle
NO_LINK
-
-
Constructor Summary
Constructors Constructor Description ImageTitleBean(String imageDescription, String imageURL, String imageLink)
ImageTitleBean(String imageDescription, String imageURL, String imageLink, boolean mobileOnly)
ImageTitleBean(String imageDescription, String imageURL, String imageLink, int priority)
ImageTitleBean(String imageDescription, String imageURL, String imageLink, int priority, boolean mobileOnly)
ImageTitleBean(ContentContext ctx, IImageTitle imageTitle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getImageDescription(ContentContext ctx)
String
getImageLinkURL(ContentContext ctx)
int
getPriority(ContentContext ctx)
return the priority of the picture inside the page (9=max)String
getResourceURL(ContentContext ctx)
boolean
isImageValid(ContentContext ctx)
boolean
isMobileOnly(ContentContext ctx)
void
setMobileOnly(boolean mobileOnly)
-
-
-
Field Detail
-
EMPTY_BEAN
public static final ImageTitleBean EMPTY_BEAN
-
-
Constructor Detail
-
ImageTitleBean
public ImageTitleBean(String imageDescription, String imageURL, String imageLink, int priority)
-
ImageTitleBean
public ImageTitleBean(String imageDescription, String imageURL, String imageLink, int priority, boolean mobileOnly)
-
ImageTitleBean
public ImageTitleBean(String imageDescription, String imageURL, String imageLink, boolean mobileOnly)
-
ImageTitleBean
public ImageTitleBean(ContentContext ctx, IImageTitle imageTitle)
-
-
Method Detail
-
getImageDescription
public String getImageDescription(ContentContext ctx)
- Specified by:
getImageDescription
in interfaceIImageTitle
-
getResourceURL
public String getResourceURL(ContentContext ctx)
- Specified by:
getResourceURL
in interfaceIImageTitle
-
isImageValid
public boolean isImageValid(ContentContext ctx)
- Specified by:
isImageValid
in interfaceIImageTitle
-
getImageLinkURL
public String getImageLinkURL(ContentContext ctx)
- Specified by:
getImageLinkURL
in interfaceIImageTitle
-
getPriority
public int getPriority(ContentContext ctx)
Description copied from interface:IImageTitle
return the priority of the picture inside the page (9=max)- Specified by:
getPriority
in interfaceIImageTitle
- Returns:
-
isMobileOnly
public boolean isMobileOnly(ContentContext ctx)
- Specified by:
isMobileOnly
in interfaceIImageTitle
-
setMobileOnly
public void setMobileOnly(boolean mobileOnly)
-
-