Class GuiImage

  • All Implemented Interfaces:
    Serializable

    public final class GuiImage
    extends Object
    implements Serializable
    Model for a GUI image with a source and an alternative description.
    Since:
    8.0.0
    Author:
    XIMA MEDIA GmbH
    See Also:
    Serialized Form
    • Constructor Detail

      • GuiImage

        public GuiImage​(String src,
                        String alt)
        Creates a new model with the given data.
        Parameters:
        src - The source of the image, i.e. the link with the image content.
        alt - The alternative text for the image, used e.g. when the image cannot be displayed.
    • Method Detail

      • getSrc

        public String getSrc()
        Gets the source of the image, i.e. the link with the image content.
        Returns:
        The image source.
      • getAlt

        public String getAlt()
        Gets the alternative text for the image, used e.g. when the image cannot be displayed.
        Returns:
        The alt image text.