Class Image

All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Identified, Tool

@Component public class Image extends Component
This class, that extends Component, is used to add an <img> HTML element inside a page
See Also:
GCApi:
component
  • Field Details

    • _image

      protected String _image
    • _title

      protected String _title
    • width

      protected int width
    • height

      protected int height
    • altIcon

      protected String altIcon
  • Constructor Details

    • Image

      public Image()
  • Method Details

    • setIMAGE

      public void setIMAGE(String s)
      Sets the source of the image
      Parameters:
      s - The string containing the source of the image
    • setTITLE

      public void setTITLE(String s)
      Sets the tooltip that appears when the mouse remains over the image. Using this method the string will be translated by the Teacher
      Parameters:
      s - The string that will appear as tooltip for the image
    • setALTICON

      public void setALTICON(String alt)
      Sets the alt's attribute string for the image that is associated to component.
      Parameters:
      alt - A String that represents the alt attribute associated to the image associated to the component.
    • getTITLE

      public String getTITLE()
      Returns the string that appears as a tooltip when the mouse remains over the image
      Returns:
      The string that will appear as tooltip for the image
    • setWIDTH

      public void setWIDTH(String s)
      Sets the width of the image
      Parameters:
      s - The width of the image, expressed in pixels
    • setHEIGHT

      public void setHEIGHT(String s)
      Sets the height of the image
      Parameters:
      s - The height of the image, expressed in pixels
    • getHtml

      public org.apache.ecs.Element getHtml(EntitySet es)
      Description copied from class: Component
      Abstract method that must be extended and returns the html code of the Component
      Specified by:
      getHtml in class Component
      Parameters:
      es - The EntitySet to which the element belongs
      Returns:
      The html of the Component
    • setTitle

      public void setTitle(String s)
      Sets the tooltip that appears when the mouse remains over the image. Using this method the string will not be translated
      Parameters:
      s - The string that will appear as tooltip for the image