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 class
This class can be used to construct an instance of the AreaDescription class using the builder pattern.protected static class
AreaDescription.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.protected
AreaDescription
(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.void
setAlt
(StringProperty alt) Sets the object's tooltip text.void
Sets the alternative text that will be displayed instead of the image.void
setCoords
(int[] coords) Sets the coordinates of an area in an image-map.void
setHref
(StringProperty href) Sets the link's target without the last /.void
Sets the link's target without the last /.void
setMapName
(StringProperty mapName) Sets the name of the map element the image uses to define the area inside the image.void
setMapName
(String mapName) Sets the name of the map element the image uses to define the area inside the image.void
setSrc
(StringProperty src) Sets the image source in URL format.void
Sets the image source in URL format.void
setTarget
(StringProperty target) Sets the name of the frame that will be navigated when user clicks on the frame.void
Sets the name of the frame that will be navigated when user clicks on the frame.void
Sets the image type.Methods inherited from class com.hp.lft.sdk.web.WebElementDescription
getAccessibilityName, getCSSSelector, getRole, getXPath, setAccessibilityName, setAccessibilityName, setCSSSelector, setCSSSelector, setRole, setRole, setXPath, setXPath
Methods 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, setVisible
Methods inherited from class com.hp.lft.sdk.DescriptionBase
getIndex, getIndexType, getObjectProperties, getVRI, setIndex, setIndexType, setObjectProperties, setVRI, setVRI
Methods inherited from class com.hp.lft.sdk.PropertiesDescription
clone
Methods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
getValueAs, getValueAsStringProperty, insertValue
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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.
-