Java Doc for HTMLInputElement.java in  » 6.0-JDK-Core » w3c » org » w3c » dom » html » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » w3c » org.w3c.dom.html 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.w3c.dom.html.HTMLInputElement

HTMLInputElement
public interface HTMLInputElement extends HTMLElement(Code)
Form control. Note. Depending upon the environment in which the page is being viewed, the value property may be read-only for the file upload input type. For the "password" input type, the actual value returned may be masked to prevent unauthorized use. See the INPUT element definition in HTML 4.0.

See also the Document Object Model (DOM) Level 2 Specification.





Method Summary
public  voidblur()
     Removes keyboard focus from this element.
public  voidclick()
     Simulate a mouse-click.
public  voidfocus()
     Gives keyboard focus to this element.
public  StringgetAccept()
     A comma-separated list of content types that a server processing this form will handle correctly.
public  StringgetAccessKey()
     A single character access key to give access to the form control.
public  StringgetAlign()
     Aligns this object (vertically or horizontally) with respect to its surrounding text.
public  StringgetAlt()
     Alternate text for user agents not rendering the normal content of this element.
public  booleangetChecked()
     When the type attribute of the element has the value "Radio" or "Checkbox", this represents the current state of the form control, in an interactive user agent.
public  booleangetDefaultChecked()
     When type has the value "Radio" or "Checkbox", this represents the HTML checked attribute of the element.
public  StringgetDefaultValue()
     When the type attribute of the element has the value "Text", "File" or "Password", this represents the HTML value attribute of the element.
public  booleangetDisabled()
     The control is unavailable in this context.
public  HTMLFormElementgetForm()
     Returns the FORM element containing this control.
public  intgetMaxLength()
     Maximum number of characters for text fields, when type has the value "Text" or "Password".
public  StringgetName()
     Form control or object name when submitted with a form.
public  booleangetReadOnly()
     This control is read-only.
public  StringgetSize()
     Size information.
public  StringgetSrc()
     When the type attribute has the value "Image", this attribute specifies the location of the image to be used to decorate the graphical submit button.
public  intgetTabIndex()
     Index that represents the element's position in the tabbing order.
public  StringgetType()
     The type of control created.
public  StringgetUseMap()
     Use client-side image map.
public  StringgetValue()
     When the type attribute of the element has the value "Text", "File" or "Password", this represents the current contents of the corresponding form control, in an interactive user agent.
public  voidselect()
     Select the contents of the text area.
public  voidsetAccept(String accept)
    
public  voidsetAccessKey(String accessKey)
    
public  voidsetAlign(String align)
    
public  voidsetAlt(String alt)
    
public  voidsetChecked(boolean checked)
    
public  voidsetDefaultChecked(boolean defaultChecked)
    
public  voidsetDefaultValue(String defaultValue)
    
public  voidsetDisabled(boolean disabled)
    
public  voidsetMaxLength(int maxLength)
    
public  voidsetName(String name)
    
public  voidsetReadOnly(boolean readOnly)
    
public  voidsetSize(String size)
    
public  voidsetSrc(String src)
    
public  voidsetTabIndex(int tabIndex)
    
public  voidsetUseMap(String useMap)
    
public  voidsetValue(String value)
    



Method Detail
blur
public void blur()(Code)
Removes keyboard focus from this element.



click
public void click()(Code)
Simulate a mouse-click. For INPUT elements whose type attribute has one of the following values: "Button", "Checkbox", "Radio", "Reset", or "Submit".



focus
public void focus()(Code)
Gives keyboard focus to this element.



getAccept
public String getAccept()(Code)
A comma-separated list of content types that a server processing this form will handle correctly. See the accept attribute definition in HTML 4.0.



getAccessKey
public String getAccessKey()(Code)
A single character access key to give access to the form control. See the accesskey attribute definition in HTML 4.0.



getAlign
public String getAlign()(Code)
Aligns this object (vertically or horizontally) with respect to its surrounding text. See the align attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.



getAlt
public String getAlt()(Code)
Alternate text for user agents not rendering the normal content of this element. See the alt attribute definition in HTML 4.0.



getChecked
public boolean getChecked()(Code)
When the type attribute of the element has the value "Radio" or "Checkbox", this represents the current state of the form control, in an interactive user agent. Changes to this attribute change the state of the form control, but do not change the value of the HTML value attribute of the element.



getDefaultChecked
public boolean getDefaultChecked()(Code)
When type has the value "Radio" or "Checkbox", this represents the HTML checked attribute of the element. The value of this attribute does not change if the state of the corresponding form control, in an interactive user agent, changes. Changes to this attribute, however, resets the state of the form control. See the checked attribute definition in HTML 4.0.



getDefaultValue
public String getDefaultValue()(Code)
When the type attribute of the element has the value "Text", "File" or "Password", this represents the HTML value attribute of the element. The value of this attribute does not change if the contents of the corresponding form control, in an interactive user agent, changes. Changing this attribute, however, resets the contents of the form control. See the value attribute definition in HTML 4.0.



getDisabled
public boolean getDisabled()(Code)
The control is unavailable in this context. See the disabled attribute definition in HTML 4.0.



getForm
public HTMLFormElement getForm()(Code)
Returns the FORM element containing this control. Returns null if this control is not within the context of a form.



getMaxLength
public int getMaxLength()(Code)
Maximum number of characters for text fields, when type has the value "Text" or "Password". See the maxlength attribute definition in HTML 4.0.



getName
public String getName()(Code)
Form control or object name when submitted with a form. See the name attribute definition in HTML 4.0.



getReadOnly
public boolean getReadOnly()(Code)
This control is read-only. Relevant only when type has the value "Text" or "Password". See the readonly attribute definition in HTML 4.0.



getSize
public String getSize()(Code)
Size information. The precise meaning is specific to each type of field. See the size attribute definition in HTML 4.0.



getSrc
public String getSrc()(Code)
When the type attribute has the value "Image", this attribute specifies the location of the image to be used to decorate the graphical submit button. See the src attribute definition in HTML 4.0.



getTabIndex
public int getTabIndex()(Code)
Index that represents the element's position in the tabbing order. See the tabindex attribute definition in HTML 4.0.



getType
public String getType()(Code)
The type of control created. See the type attribute definition in HTML 4.0.



getUseMap
public String getUseMap()(Code)
Use client-side image map. See the usemap attribute definition in HTML 4.0.



getValue
public String getValue()(Code)
When the type attribute of the element has the value "Text", "File" or "Password", this represents the current contents of the corresponding form control, in an interactive user agent. Changing this attribute changes the contents of the form control, but does not change the value of the HTML value attribute of the element. When the type attribute of the element has the value "Button", "Hidden", "Submit", "Reset", "Image", "Checkbox" or "Radio", this represents the HTML value attribute of the element. See the value attribute definition in HTML 4.0.



select
public void select()(Code)
Select the contents of the text area. For INPUT elements whose type attribute has one of the following values: "Text", "File", or "Password".



setAccept
public void setAccept(String accept)(Code)



setAccessKey
public void setAccessKey(String accessKey)(Code)



setAlign
public void setAlign(String align)(Code)



setAlt
public void setAlt(String alt)(Code)



setChecked
public void setChecked(boolean checked)(Code)



setDefaultChecked
public void setDefaultChecked(boolean defaultChecked)(Code)



setDefaultValue
public void setDefaultValue(String defaultValue)(Code)



setDisabled
public void setDisabled(boolean disabled)(Code)



setMaxLength
public void setMaxLength(int maxLength)(Code)



setName
public void setName(String name)(Code)



setReadOnly
public void setReadOnly(boolean readOnly)(Code)



setSize
public void setSize(String size)(Code)



setSrc
public void setSrc(String src)(Code)



setTabIndex
public void setTabIndex(int tabIndex)(Code)



setUseMap
public void setUseMap(String useMap)(Code)



setValue
public void setValue(String value)(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.