Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2011 Tomas Schlosser
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 package org.anadix.html;
 
Defines an area inside an image-map. See w3schools.

Author(s):
tomason
Version:
$Id: $
 
 public class AreaTag extends CommonAttributes {
 
 	AreaTag(BigInteger idHtmlElement parentAttributes attributes) {
 		super(id"area"parentattributes);
 	}

Specifies the shape of an area

Returns:
the shape of an area
 
 	public String getShape() {
 		return getAttribute("shape");
 	}

Specifies the coordinates of an area

Returns:
the coordinates of an area
 
 	public String getCoords() {
 		return getAttribute("coords");
 	}

Specifies the destination of a link in an area

Returns:
the destination of a link in an area
 
 	public String getHref() {
 		return getAttribute("href");
 	}

Specifies where to open the linked page specified in the href attribute

Returns:
where to open the linked page specified in the href attribute
 
 	public String getTarget() {
 		return getAttribute("target");
 	}

Specifies that an area has no associated link

Returns:
whether an area has no associated link
 
 	public String getNohref() {
 		return getAttribute("nohref");
 	}

Specifies an alternate text for an area

Returns:
an alternate text for an area
 
 	public String getAlt() {
 		return getAttribute("alt");
 	}

Specifies the tab order of an element

Returns:
the tab order of an element
 
 	public String getTabindex() {
 		String value = getAttribute("tabindex");
 
 		// return (value == null) ? -1 : Integer.parseInt(value);
 		return value;
 	}

Specifies a keyboard shortcut to access an element

Returns:
a keyboard shortcut to access an element
	public String getAcesskey() {
		return getAttribute("accesskey");
	}

Script to be run when an element gets focus

Returns:
script to be run when an element gets focus
	public String getOnfocus() {
		return getAttribute("onfocus");
	}

Script to be run when an element loses focus

Returns:
script to be run when an element loses focus
	public String getOnblur() {
		return getAttribute("onblur");
	}
New to GrepCode? Check out our FAQ X