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 a drop-down list

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

Defines a name for the drop-down list

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

Defines the number of visible options in a drop-down list

Returns:
number of visible options
 
 	public String getSize() {
 		return getAttribute("size");
 	}

Specifies that multiple options can be selected at once

Returns:
whether more options can be selected
 
 	public String getMultiple() {
 		return getAttribute("multiple");
 	}

Specifies that a drop-down list should be disabled

Returns:
whether the list is disabled
 
 	public String getDisabled() {
 		return getAttribute("disabled");
 	}

Specifies the tab order of an element

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

Script to be run when an element gets focus

Returns:
script when the element gets focus
 
 	public String getOnfocus() {
 		return getAttribute("onfocus");
 	}

Script to be run when an element loses focus

Returns:
script when the element looses focus
 
 	public String getOnblur() {
 		return getAttribute("onblur");
 	}

Script to be run when an element change

Returns:
script when element changes
 
	public String getOnchange() {
		return getAttribute("onchange");
	}
New to GrepCode? Check out our FAQ X