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 anchor. See w3schools.

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

Specifies a keyboard shortcut to access an element

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

Specifies the character-set of a linked document

Returns:
the character-set of a linked document
 
 	public String getCharset() {
 		return getAttribute("charset");
 	}

Specifies the coordinates of a link

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

Specifies the destination of a link

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

Specifies the language of a linked document

Returns:
the language of a linked document
 
 	public String getHreflang() {
 		return getAttribute("hreflang");
 	}

Specifies the name of an anchor

Returns:
the name of an anchor
 
 	public String getNameAttribute() {
 		return getAttribute("name");
 	}

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");
 	}

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");
	}

Specifies the relationship between the current document and the linked document

Returns:
the relationship between the current document and the linked document
	public String getRel() {
		return getAttribute("rel");
	}

Specifies the relationship between the linked document and the current document

Returns:
the relationship between the linked document and the current document
	public String getRev() {
		return getAttribute("rev");
	}

Specifies the shape of a link

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



Specifies the tab order of an element

Returns:
the tab order of an element
	public String getTabindex() {
		return getAttribute("tabindex");
	}

Specifies where to open the linked document

Returns:
where to open the linked document
	public String getTarget() {
		return getAttribute("target");
	}
New to GrepCode? Check out our FAQ X