org.anadix.html
Class FormTag

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

public class FormTag
extends CoreAttributes

Defines an HTML form for user input

Version:
$Id: $
Author:
tomason

Method Summary
 String getAccept()
          Specifies the types of files that the server accepts (that can be submitted through a file upload)
 String getAcceptCharset()
          Specifies a list of character encodings that the server accepts
 String getAction()
          Specifies where to send the form-data when a form is submitted
 String getDir()
          Specifies the text direction for the content in an element
 String getEnctype()
          Specifies how the form-data should be encoded when submitting it to the server (only for method="post")
 String getLang()
          Specifies a language code for the content in an element
 String getMethod()
          Specifies the HTTP method to use when sending form-data
 String getNameAttribute()
          Specifies the name of a form
 String getOnclick()
          Script to be run on a mouse click
 String getOndblclick()
          Script to be run on a mouse double-click
 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 getOnreset()
          Script to be run when a form is reset
 String getOnsubmit()
          Script to be run when a form is submitted
 String getTarget()
          Specifies where to display the response that is received after submitting the form
 
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

getAction

public String getAction()
Specifies where to send the form-data when a form is submitted

Returns:
where to send data

getMethod

public String getMethod()
Specifies the HTTP method to use when sending form-data

Returns:
HTTP method to send data

getEnctype

public String getEnctype()
Specifies how the form-data should be encoded when submitting it to the server (only for method="post")

Returns:
data encoding

getAccept

public String getAccept()
Specifies the types of files that the server accepts (that can be submitted through a file upload)

Returns:
type of files accepted

getNameAttribute

public String getNameAttribute()
Specifies the name of a form

Returns:
name of the form

getOnsubmit

public String getOnsubmit()
Script to be run when a form is submitted

Returns:
script to be run when submitting

getOnreset

public String getOnreset()
Script to be run when a form is reset

Returns:
script to be run when resetting

getTarget

public String getTarget()
Specifies where to display the response that is received after submitting the form

Returns:
where to show response

getAcceptCharset

public String getAcceptCharset()
Specifies a list of character encodings that the server accepts

Returns:
list of accepted charsets

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.