Class Image

  • All Implemented Interfaces:
    java.io.Serializable

    @Entity
    public class Image
    extends Module
    The Image Module is the Ext JS representation of an HTML img element.
    Author:
    Kai Volland
    See Also:
    Serialized Form
    • Constructor Detail

      • Image

        public Image()
        Explicitly adding the default constructor as this is important, e.g. for Hibernate: http://goo.gl/3Cr1pw
    • Method Detail

      • getSrc

        public java.lang.String getSrc()
        Returns:
        the src
      • setSrc

        public void setSrc​(java.lang.String src)
        Parameters:
        src - the src to set
      • getLink

        public java.lang.String getLink()
        Returns:
        the link
      • setLink

        public void setLink​(java.lang.String link)
        Parameters:
        link - the link to set
      • getAltText

        public java.lang.String getAltText()
        Returns:
        the altText
      • setAltText

        public void setAltText​(java.lang.String altText)
        Parameters:
        altText - the altText to set
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Module
        See Also:
        According to http://stackoverflow.com/questions/27581/overriding-equals -and-hashcode-in-java it is recommended only to use getter-methods when using ORM like Hibernate
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class Module
        See Also:
        According to http://stackoverflow.com/questions/27581/overriding-equals -and-hashcode-in-java it is recommended only to use getter-methods when using ORM like Hibernate