Class AreaDescription

All Implemented Interfaces:
CloneableObject, Description, com.hp.lft.sdk.internal.DescriptionWithVri, Cloneable

public class AreaDescription extends WebElementDescription
The description of a Web Area test object.
  • Constructor Details

    • AreaDescription

      public AreaDescription()
      Initializes a new instance of the AreaDescription class.
    • AreaDescription

      protected AreaDescription(AreaDescription.Init<?> init)
      Initializes a new instance of the AreaDescription class using the Builder pattern.
      Parameters:
      init - the Builder pattern.
  • Method Details

    • setAlt

      public void setAlt(StringProperty alt)
      Sets the object's tooltip text.
      Parameters:
      alt - a StringProperty(or RegExpProperty) representing the alternative text that will be displayed instead of the image.
    • setAlt

      public void setAlt(String alt)
      Sets the alternative text that will be displayed instead of the image.
      Parameters:
      alt - the alternative text that will be displayed instead of the image.
    • getAlt

      public StringProperty getAlt()
      Returns the alternative text that will be displayed instead of the image.
      Returns:
      the alternative text that will be displayed instead of the image.
    • setSrc

      public void setSrc(StringProperty src)
      Sets the image source in URL format.
      Parameters:
      src - a StringProperty(or RegExpProperty) representing the image source in URL format.
    • setSrc

      public void setSrc(String src)
      Sets the image source in URL format.
      Parameters:
      src - the image source in URL format.
    • getSrc

      public StringProperty getSrc()
      Returns the image source in URL format.
      Returns:
      the image source in URL format.
    • setTarget

      public void setTarget(StringProperty target)
      Sets the name of the frame that will be navigated when user clicks on the frame.
      Parameters:
      target - a StringProperty(or RegExpProperty) representing the name of the frame that will be navigated when user clicks on the frame.
    • setTarget

      public void setTarget(String target)
      Sets the name of the frame that will be navigated when user clicks on the frame.
      Parameters:
      target - the name of the frame that will be navigated when user clicks on the frame.
    • getTarget

      public StringProperty getTarget()
      Returns the name of the frame that will be navigated when user clicks on the frame.
      Returns:
      the name of the frame that will be navigated when user clicks on the frame.
    • setHref

      public void setHref(StringProperty href)
      Sets the link's target without the last /.
      Parameters:
      href - a StringProperty(or RegExpProperty) representing the link's target without the last /.
    • setHref

      public void setHref(String href)
      Sets the link's target without the last /.
      Parameters:
      href - the link's target without the last /.
    • getHref

      public StringProperty getHref()
      Returns the link's target without the last /.
      Returns:
      the link's target without the last /.
    • setType

      public void setType(ImageType type)
      Sets the image type.
      Parameters:
      type - the image type.
    • getType

      public ImageType getType()
      Returns the image type.
      Returns:
      the image type.
    • setMapName

      public void setMapName(StringProperty mapName)
      Sets the name of the map element the image uses to define the area inside the image.
      Parameters:
      mapName - a StringProperty(or RegExpProperty) representing the name of the map element the image uses to define the area inside the image.
    • setMapName

      public void setMapName(String mapName)
      Sets the name of the map element the image uses to define the area inside the image.
      Parameters:
      mapName - the name of the map element the image uses to define the area inside the image.
    • getMapName

      public StringProperty getMapName()
      Returns the name of the map element the image uses to define the area inside the image.
      Returns:
      the name of the map element the image uses to define the area inside the image.
    • setCoords

      public void setCoords(int[] coords)
      Sets the coordinates of an area in an image-map. The coordinates format is determined by the shape of the area, in the following manner:
      shape="rect" - x1,y1,x2,y2.
      shape="circle" - x,y,radius
      shape="poly" - x1,y1,x2,y2,..,xn,yn
      Parameters:
      coords - the coordinates of an area in an image-map.
    • getCoords

      public int[] getCoords()
      Returns the coordinates of an area in an image-map. The coordinates format is determined by the shape of the area, in the following manner:
      shape="rect" - x1,y1,x2,y2.
      shape="circle" - x,y,radius
      shape="poly" - x1,y1,x2,y2,..,xn,yn
      Returns:
      the coordinates of an area in an image-map.