Package com.hp.lft.sdk.web
Class AreaDescription
java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
com.hp.lft.sdk.PropertiesDescription
com.hp.lft.sdk.DescriptionBase
com.hp.lft.sdk.web.WebBaseDescription
com.hp.lft.sdk.web.WebElementDescription
com.hp.lft.sdk.web.AreaDescription
- All Implemented Interfaces:
CloneableObject,Description,com.hp.lft.sdk.internal.DescriptionWithVri,Cloneable
The description of a Web Area test object.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class can be used to construct an instance of the AreaDescription class using the builder pattern.protected static classAreaDescription.Init<T extends AreaDescription.Init<T>>Helper class for AreaDescription.Builder. -
Field Summary
Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
properties -
Constructor Summary
ConstructorsModifierConstructorDescriptionInitializes a new instance of the AreaDescription class.protectedAreaDescription(AreaDescription.Init<?> init) Initializes a new instance of the AreaDescription class using the Builder pattern. -
Method Summary
Modifier and TypeMethodDescriptiongetAlt()Returns the alternative text that will be displayed instead of the image.int[]Returns the coordinates of an area in an image-map.getHref()Returns the link's target without the last /.Returns the name of the map element the image uses to define the area inside the image.getSrc()Returns the image source in URL format.Returns the name of the frame that will be navigated when user clicks on the frame.getType()Returns the image type.voidsetAlt(StringProperty alt) Sets the object's tooltip text.voidSets the alternative text that will be displayed instead of the image.voidsetCoords(int[] coords) Sets the coordinates of an area in an image-map.voidsetHref(StringProperty href) Sets the link's target without the last /.voidSets the link's target without the last /.voidsetMapName(StringProperty mapName) Sets the name of the map element the image uses to define the area inside the image.voidsetMapName(String mapName) Sets the name of the map element the image uses to define the area inside the image.voidsetSrc(StringProperty src) Sets the image source in URL format.voidSets the image source in URL format.voidsetTarget(StringProperty target) Sets the name of the frame that will be navigated when user clicks on the frame.voidSets the name of the frame that will be navigated when user clicks on the frame.voidSets the image type.Methods inherited from class com.hp.lft.sdk.web.WebElementDescription
getAccessibilityName, getCSSSelector, getRole, getXPath, setAccessibilityName, setAccessibilityName, setCSSSelector, setCSSSelector, setRole, setRole, setXPath, setXPathMethods inherited from class com.hp.lft.sdk.web.WebBaseDescription
cloneTo, getAbsoluteLocation, getAttributes, getClassName, getId, getInnerHTML, getInnerText, getLocation, getName, getOuterHTML, getOuterText, getSize, getStyles, getTagName, getTitle, isVisible, setAbsoluteLocation, setAbsoluteLocation, setAbsoluteLocation, setAttributes, setClassName, setClassName, setId, setId, setInnerHTML, setInnerHTML, setInnerText, setInnerText, setLocation, setLocation, setLocation, setName, setName, setOuterHTML, setOuterHTML, setOuterText, setOuterText, setSize, setSize, setSize, setStyles, setTagName, setTagName, setTitle, setTitle, setVisibleMethods inherited from class com.hp.lft.sdk.DescriptionBase
getIndex, getIndexType, getObjectProperties, getVRI, setIndex, setIndexType, setObjectProperties, setVRI, setVRIMethods inherited from class com.hp.lft.sdk.PropertiesDescription
cloneMethods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
getValueAs, getValueAsStringProperty, insertValueMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hp.lft.sdk.CloneableObject
clone
-
Constructor Details
-
AreaDescription
public AreaDescription()Initializes a new instance of the AreaDescription class. -
AreaDescription
Initializes a new instance of the AreaDescription class using the Builder pattern.- Parameters:
init- the Builder pattern.
-
-
Method Details
-
setAlt
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
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
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
Sets the image source in URL format.- Parameters:
src- a StringProperty(or RegExpProperty) representing the image source in URL format.
-
setSrc
Sets the image source in URL format.- Parameters:
src- the image source in URL format.
-
getSrc
Returns the image source in URL format.- Returns:
- the image source in URL format.
-
setTarget
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
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
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
Sets the link's target without the last /.- Parameters:
href- a StringProperty(or RegExpProperty) representing the link's target without the last /.
-
setHref
Sets the link's target without the last /.- Parameters:
href- the link's target without the last /.
-
getHref
Returns the link's target without the last /.- Returns:
- the link's target without the last /.
-
setType
Sets the image type.- Parameters:
type- the image type.
-
getType
Returns the image type.- Returns:
- the image type.
-
setMapName
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
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
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.
-