Package io.wcm.handler.media
Class MediaArgs.PictureSource
- java.lang.Object
-
- io.wcm.handler.media.MediaArgs.PictureSource
-
- Enclosing class:
- MediaArgs
@ProviderType public static final class MediaArgs.PictureSource extends java.lang.ObjectPicture source for responsive image handling.
-
-
Constructor Summary
Constructors Constructor Description PictureSource(@NotNull MediaFormat mediaFormat)PictureSource(@Nullable java.lang.String mediaFormatName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)@Nullable java.lang.StringgetMedia()@Nullable MediaFormatgetMediaFormat()@Nullable java.lang.StringgetMediaFormatName()@Nullable java.lang.StringgetSizes()@NotNull MediaArgs.WidthOption @Nullable []getWidthOptions()inthashCode()MediaArgs.PictureSourcemedia(@Nullable java.lang.String value)MediaArgs.PictureSourcesizes(@Nullable java.lang.String value)java.lang.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 java.lang.String mediaFormatName)- Parameters:
mediaFormatName- Media format name
-
-
Method Detail
-
getMediaFormat
@Nullable public @Nullable MediaFormat getMediaFormat()
- Returns:
- Media format
-
getMediaFormatName
@Nullable public @Nullable java.lang.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
-
sizes
public MediaArgs.PictureSource sizes(@Nullable @Nullable java.lang.String value)
- Parameters:
value- A valid source size list.- Returns:
- this
-
getSizes
@Nullable public @Nullable java.lang.String getSizes()
- Returns:
- A valid source size list.
-
media
public MediaArgs.PictureSource media(@Nullable @Nullable java.lang.String value)
- Parameters:
value- A valid media query list.- Returns:
- this
-
getMedia
@Nullable public @Nullable java.lang.String getMedia()
- Returns:
- A valid media query list.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-