Package io.wcm.handler.media
Class MediaArgs.PictureSource
- java.lang.Object
-
- io.wcm.handler.media.MediaArgs.PictureSource
-
-
Constructor Summary
Constructors Constructor Description PictureSource(@NotNull MediaFormat mediaFormat)PictureSource(@NotNull MediaFormat mediaFormat, @Nullable String media, long @NotNull ... widths)Deprecated.PictureSource(@Nullable MediaFormat mediaFormat, @Nullable String media, @NotNull MediaArgs.WidthOption @NotNull ... widthOptions)Deprecated.PictureSource(@Nullable String mediaFormatName)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)@Nullable StringgetMedia()@Nullable MediaFormatgetMediaFormat()@Nullable StringgetMediaFormatName()@Nullable StringgetSizes()@NotNull MediaArgs.WidthOption @Nullable []getWidthOptions()long @Nullable []getWidths()Deprecated.inthashCode()MediaArgs.PictureSourcemedia(@Nullable String value)MediaArgs.PictureSourcesizes(@Nullable String value)StringtoString()MediaArgs.PictureSourcewidthOptions(@NotNull MediaArgs.WidthOption @NotNull ... value)MediaArgs.PictureSourcewidths(long @NotNull ... value)
-
-
-
Constructor Detail
-
PictureSource
public PictureSource(@NotNull @NotNull MediaFormat mediaFormat)- Parameters:
mediaFormat- Media format
-
PictureSource
public PictureSource(@Nullable @Nullable String mediaFormatName)- Parameters:
mediaFormatName- Media format name
-
PictureSource
@Deprecated public PictureSource(@NotNull @NotNull MediaFormat mediaFormat, @Nullable @Nullable String media, long @NotNull ... widths)
Deprecated.- Parameters:
mediaFormat- Media formatmedia- A valid media query listwidths- Widths for the renditions in thesrcsetattribute (all mandatory).
-
PictureSource
@Deprecated public PictureSource(@Nullable @Nullable MediaFormat mediaFormat, @Nullable @Nullable String media, @NotNull @NotNull MediaArgs.WidthOption @NotNull ... widthOptions)
Deprecated.- Parameters:
mediaFormat- Media formatmedia- A valid media query listwidthOptions- Widths for the renditions in thesrcsetattribute.
-
-
Method Detail
-
getMediaFormat
@Nullable public @Nullable MediaFormat getMediaFormat()
- Returns:
- Media format
-
getMediaFormatName
@Nullable public @Nullable String getMediaFormatName()
- Returns:
- Media format
-
widthOptions
public MediaArgs.PictureSource widthOptions(@NotNull @NotNull MediaArgs.WidthOption @NotNull ... value)
- Parameters:
value- Widths for the renditions in thesrcsetattribute.- Returns:
- this
-
getWidthOptions
@NotNull public @NotNull MediaArgs.WidthOption @Nullable [] getWidthOptions()
- Returns:
- Widths for the renditions in the
srcsetattribute.
-
widths
public MediaArgs.PictureSource widths(long @NotNull ... value)
- Parameters:
value- Widths for the renditions in thesrcsetattribute.- Returns:
- this
-
getWidths
@Deprecated public long @Nullable [] getWidths()
Deprecated.- Returns:
- Widths for the renditions in the
srcsetattribute.
-
sizes
public MediaArgs.PictureSource sizes(@Nullable @Nullable String value)
- Parameters:
value- A valid source size list.- Returns:
- this
-
getSizes
@Nullable public @Nullable String getSizes()
- Returns:
- A valid source size list.
-
media
public MediaArgs.PictureSource media(@Nullable @Nullable String value)
- Parameters:
value- A valid media query list.- Returns:
- this
-
getMedia
@Nullable public @Nullable String getMedia()
- Returns:
- A valid media query list.
-
-