org.anadix.html
Class InputTag

java.lang.Object
  extended by org.anadix.html.HtmlElement
      extended by org.anadix.html.CoreAttributes
          extended by org.anadix.html.InputTag
All Implemented Interfaces:
Comparable<HtmlElement>, Element

public class InputTag
extends CoreAttributes

Defines an input control

Version:
$Id: $
Author:
tomason

Method Summary
 String getAccept()
          Specifies the types of files that the server accepts (only for type="file")
 String getAccesskey()
          Specifies a keyboard shortcut to access an element
 String getAlign()
          Specifies the alignment of an image input (only for type="image")
 String getAlt()
          Specifies an alternate text for an image (only for type="image")
 String getChecked()
          Specifies that an element should be preselected when the page loads (for type="checkbox" or type="radio")
 String getDir()
          Specifies the text direction for the content in an element
 String getDisabled()
          Specifies that an element should be disabled
 String getIsmap()
          getIsmap.
 String getLang()
          Specifies a language code for the content in an element
 String getMaxlength()
          Specifies the maximum number of characters allowed in an element
 String getNameAttribute()
          Specifies the name of an element
 String getOnblur()
          Script to be run when an element loses focus
 String getOnchange()
          Script to be run when an element change
 String getOnclick()
          Script to be run on a mouse click
 String getOndblclick()
          Script to be run on a mouse double-click
 String getOnfocus()
          Script to be run when an element gets focus
 String getOnkeydown()
          Script to be run when a key is pressed
 String getOnkeypress()
          Script to be run when a key is pressed and released
 String getOnkeyup()
          Script to be run when a key is released
 String getOnmousedown()
          Script to be run when mouse button is pressed
 String getOnmousemove()
          Script to be run when mouse pointer moves
 String getOnmouseout()
          Script to be run when mouse pointer moves out of an element
 String getOnmouseover()
          Script to be run when mouse pointer moves over an element
 String getOnmouseup()
          Script to be run when mouse button is released
 String getOnselect()
          Script to be run when an element is selected
 String getReadonly()
          Specifies that an input field should be read-only
 String getSize()
          Specifies the width, in characters, of an element
 String getSrc()
          Specifies the URL of the image to use as a submit button (only for type="image")
 String getTabindex()
          Specifies the tab order of an element
 String getType()
          Specifies the type of an element
 String getUsemap()
          getUsemap.
 String getValue()
          Specifies the value of an element
 
Methods inherited from class org.anadix.html.CoreAttributes
getClassAttribute, getIdAttribute, getStyle, getTitle
 
Methods inherited from class org.anadix.html.HtmlElement
compareTo, equals, getAttribute, getAttributes, getId, getName, getParent, getPosition, getSource, getTextContent, hashCode, setPosition, setSource, setTextContent, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getType

public String getType()
Specifies the type of an element

Returns:
type of the element

getNameAttribute

public String getNameAttribute()
Specifies the name of an element

Returns:
name of the element

getValue

public String getValue()
Specifies the value of an element

Returns:
value of the element

getChecked

public String getChecked()
Specifies that an element should be preselected when the page loads (for type="checkbox" or type="radio")

Returns:
whether the element should be checked

getDisabled

public String getDisabled()
Specifies that an element should be disabled

Returns:
whether the element should be disabled

getReadonly

public String getReadonly()
Specifies that an input field should be read-only

Returns:
whether the element is read-only

getSize

public String getSize()
Specifies the width, in characters, of an element

Returns:
width of the element

getMaxlength

public String getMaxlength()
Specifies the maximum number of characters allowed in an element

Returns:
maximum number of characters

getSrc

public String getSrc()
Specifies the URL of the image to use as a submit button (only for type="image")

Returns:
URL of image

getAlt

public String getAlt()
Specifies an alternate text for an image (only for type="image")

Returns:
alternative text

getUsemap

public String getUsemap()

getUsemap.

Returns:
a String object.

getIsmap

public String getIsmap()

getIsmap.

Returns:
a String object.

getTabindex

public String getTabindex()
Specifies the tab order of an element

Returns:
tab order of the element

getAccesskey

public String getAccesskey()
Specifies a keyboard shortcut to access an element

Returns:
shortcut for the element

getOnfocus

public String getOnfocus()
Script to be run when an element gets focus

Returns:
script when element gets focus

getOnblur

public String getOnblur()
Script to be run when an element loses focus

Returns:
script when element looses focus

getOnselect

public String getOnselect()
Script to be run when an element is selected

Returns:
script when element is selected

getOnchange

public String getOnchange()
Script to be run when an element change

Returns:
script when the element is changed

getAccept

public String getAccept()
Specifies the types of files that the server accepts (only for type="file")

Returns:
type of files the server accepts

getAlign

public String getAlign()
Specifies the alignment of an image input (only for type="image")

Returns:
alignment of input

getLang

public String getLang()
Specifies a language code for the content in an element

Returns:
language code for content of the element

getDir

public String getDir()
Specifies the text direction for the content in an element

Returns:
text direction for the content of the element

getOnclick

public String getOnclick()
Script to be run on a mouse click

Returns:
script on mouse click

getOndblclick

public String getOndblclick()
Script to be run on a mouse double-click

Returns:
script on double-click

getOnmousedown

public String getOnmousedown()
Script to be run when mouse button is pressed

Returns:
script on mouse button press

getOnmouseup

public String getOnmouseup()
Script to be run when mouse button is released

Returns:
script on mouse button release

getOnmouseover

public String getOnmouseover()
Script to be run when mouse pointer moves over an element

Returns:
script on mouse over element

getOnmousemove

public String getOnmousemove()
Script to be run when mouse pointer moves

Returns:
script on mouse move within the element

getOnmouseout

public String getOnmouseout()
Script to be run when mouse pointer moves out of an element

Returns:
script on mouse moving out of the element

getOnkeypress

public String getOnkeypress()
Script to be run when a key is pressed and released

Returns:
script on key press and release

getOnkeydown

public String getOnkeydown()
Script to be run when a key is pressed

Returns:
script on key press

getOnkeyup

public String getOnkeyup()
Script to be run when a key is released

Returns:
script on key release


Copyright © 2012. All Rights Reserved.