version 1.0

com.actimind.actiwate.testing.html.objects
Interface Image

All Superinterfaces:
BaseElement, ClickableElement, com.actimind.actiwate.testing.logging.Loggable

public interface Image
extends ClickableElement

Represents HTML image (img tag) or image button (input type='image') element.


Method Summary
 java.lang.String alt()
          Returns value of alt attribute.
 ImageMap getMap()
          Retuns associated map or throws a LookupException if no map associated.
 boolean isButton()
          Returns true if this image represents image button element.
 java.lang.String location()
          Returns location of this image.
 java.lang.String name()
          Returns value of name attribute.
 Link outerLink()
          Returns link containing this image.
 java.lang.String src()
          Returns value of src attribute.
 
Methods inherited from interface com.actimind.actiwate.testing.html.objects.BaseElement
element, id
 
Methods inherited from interface com.actimind.actiwate.testing.logging.Loggable
getLogDesc
 

Method Detail

src

public java.lang.String src()
Returns value of src attribute.

Returns:
value of src attribute.

name

public java.lang.String name()
Returns value of name attribute.

Returns:
value of name attribute.

alt

public java.lang.String alt()
Returns value of alt attribute.

Returns:
value of alt attribute.

outerLink

public Link outerLink()
               throws LookupException
Returns link containing this image.

Returns:
link containing this image.
Throws:
LookupException - if image is not within link

isButton

public boolean isButton()
Returns true if this image represents image button element.

Returns:
true if this image represents image button element.

location

public java.lang.String location()
                          throws InvalidURLException
Returns location of this image. Location is calculated from current src attribute value and document location (if there is a base tag then it's href attribute value will be used instead of document location).

Returns:
location of this image.
Throws:
InvalidURLException - if location cannot be constructed.

getMap

public ImageMap getMap()
                throws LookupException
Retuns associated map or throws a LookupException if no map associated.

Returns:
associated map
Throws:
LookupException - if no map associated


Copyright © 2007 Actimind, Inc. All Rights Reserved.