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;
Superclass with definition of core attributes

Author(s):
tomason
Version:
$Id: $
public abstract class CoreAttributes extends HtmlElement {

Constructor

Parameters:
id id of element (not the attribute)
name name of the element (tag name)
parent parent element
attributes attributes of the element
	public CoreAttributes(BigInteger idString nameHtmlElement parent,
			Attributes attributes) {
		super(idnameparentattributes);
	}

Specifies a unique id for an element

Returns:
unique id of the element
	public String getIdAttribute() {
		return getAttribute("id");
	}

Specifies a classname for an element

Returns:
classname of the element
		return getAttribute("class");
	}

Specifies an inline style for an element

Returns:
style of the element
	public String getStyle() {
		return getAttribute("style");
	}

Specifies extra information about an element

Returns:
extra information about the element
	public String getTitle() {
		return getAttribute("title");
	}
New to GrepCode? Check out our FAQ X