Java Doc for HTMLSelectElement.java in  » Web-Server » Rimfaxe-Web-Server » org » w3c » dom » html » Java Source Code / Java DocumentationJava Source Code and Java Documentation

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 geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Server » Rimfaxe Web Server » org.w3c.dom.html 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.w3c.dom.html.HTMLSelectElement

All known Subclasses:   org.apache.html.dom.HTMLSelectElementImpl,
HTMLSelectElement
public interface HTMLSelectElement extends HTMLElement(Code)
The select element allows the selection of an option. The contained options can be directly accessed through the select element as a collection. See the SELECT element definition in HTML 4.0.

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





Method Summary
public  voidadd(HTMLElement element, HTMLElement before)
     Add a new element to the collection of OPTION elements for this SELECT .
public  voidblur()
     Removes keyboard focus from this element.
public  voidfocus()
     Gives keyboard focus to this element.
public  booleangetDisabled()
     The control is unavailable in this context.
public  HTMLFormElementgetForm()
     Returns the FORM element containing this control.
public  intgetLength()
     The number of options in this SELECT .
public  booleangetMultiple()
     If true, multiple OPTION elements may be selected in this SELECT .
public  StringgetName()
     Form control or object name when submitted with a form.
public  HTMLCollectiongetOptions()
     The collection of OPTION elements contained by this element.
public  intgetSelectedIndex()
     The ordinal index of the selected option, starting from 0.
public  intgetSize()
     Number of visible rows.
public  intgetTabIndex()
     Index that represents the element's position in the tabbing order.
public  StringgetType()
     The type of this form control.
public  StringgetValue()
     The current form control value.
public  voidremove(int index)
     Remove an element from the collection of OPTION elements for this SELECT .
public  voidsetDisabled(boolean disabled)
    
public  voidsetMultiple(boolean multiple)
    
public  voidsetName(String name)
    
public  voidsetSelectedIndex(int selectedIndex)
    
public  voidsetSize(int size)
    
public  voidsetTabIndex(int tabIndex)
    
public  voidsetValue(String value)
    



Method Detail
add
public void add(HTMLElement element, HTMLElement before) throws DOMException(Code)
Add a new element to the collection of OPTION elements for this SELECT . This method is the equivalent of the appendChild method of the Node interface if the before parameter is null . It is equivalent to the insertBefore method on the parent of before in all other cases.
Parameters:
  element - The element to add.
Parameters:
  before - The element to insert before, or null for the tail of the list.
exception:
  DOMException - NOT_FOUND_ERR: Raised if before is not a descendant of the SELECT element.



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



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



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.



getLength
public int getLength()(Code)
The number of options in this SELECT .



getMultiple
public boolean getMultiple()(Code)
If true, multiple OPTION elements may be selected in this SELECT . See the multiple 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.



getOptions
public HTMLCollection getOptions()(Code)
The collection of OPTION elements contained by this element.



getSelectedIndex
public int getSelectedIndex()(Code)
The ordinal index of the selected option, starting from 0. The value -1 is returned if no element is selected. If multiple options are selected, the index of the first selected option is returned.



getSize
public int getSize()(Code)
Number of visible rows. See the size 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 this form control. This is the string "select-multiple" when the multiple attribute is true and the string "select-one" when false .



getValue
public String getValue()(Code)
The current form control value.



remove
public void remove(int index)(Code)
Remove an element from the collection of OPTION elements for this SELECT . Does nothing if no element has the given index.
Parameters:
  index - The index of the item to remove, starting from 0.



setDisabled
public void setDisabled(boolean disabled)(Code)



setMultiple
public void setMultiple(boolean multiple)(Code)



setName
public void setName(String name)(Code)



setSelectedIndex
public void setSelectedIndex(int selectedIndex)(Code)



setSize
public void setSize(int size)(Code)



setTabIndex
public void setTabIndex(int tabIndex)(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.