1. /*
  2. * Copyright (c) 2000 World Wide Web Consortium,
  3. * (Massachusetts Institute of Technology, Institut National de
  4. * Recherche en Informatique et en Automatique, Keio University). All
  5. * Rights Reserved. This program is distributed under the W3C's Software
  6. * Intellectual Property License. This program is distributed in the
  7. * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  8. * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  9. * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
  10. * details.
  11. */
  12. package org.w3c.dom.html;
  13. /**
  14. * Multi-line text field. See the TEXTAREA element definition in HTML 4.0.
  15. * <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
  16. */
  17. public interface HTMLTextAreaElement extends HTMLElement {
  18. /**
  19. * Represents the contents of the element. The value of this attribute
  20. * does not change if the contents of the corresponding form control, in
  21. * an interactive user agent, changes. Changing this attribute, however,
  22. * resets the contents of the form control.
  23. */
  24. public String getDefaultValue();
  25. public void setDefaultValue(String defaultValue);
  26. /**
  27. * Returns the <code>FORM</code> element containing this control. Returns
  28. * <code>null</code> if this control is not within the context of a form.
  29. */
  30. public HTMLFormElement getForm();
  31. /**
  32. * A single character access key to give access to the form control. See
  33. * the accesskey attribute definition in HTML 4.0.
  34. */
  35. public String getAccessKey();
  36. public void setAccessKey(String accessKey);
  37. /**
  38. * Width of control (in characters). See the cols attribute definition
  39. * in HTML 4.0.
  40. */
  41. public int getCols();
  42. public void setCols(int cols);
  43. /**
  44. * The control is unavailable in this context. See the disabled
  45. * attribute definition in HTML 4.0.
  46. */
  47. public boolean getDisabled();
  48. public void setDisabled(boolean disabled);
  49. /**
  50. * Form control or object name when submitted with a form. See the name
  51. * attribute definition in HTML 4.0.
  52. */
  53. public String getName();
  54. public void setName(String name);
  55. /**
  56. * This control is read-only. See the readonly attribute definition in
  57. * HTML 4.0.
  58. */
  59. public boolean getReadOnly();
  60. public void setReadOnly(boolean readOnly);
  61. /**
  62. * Number of text rows. See the rows attribute definition in HTML 4.0.
  63. */
  64. public int getRows();
  65. public void setRows(int rows);
  66. /**
  67. * Index that represents the element's position in the tabbing order. See
  68. * the tabindex attribute definition in HTML 4.0.
  69. */
  70. public int getTabIndex();
  71. public void setTabIndex(int tabIndex);
  72. /**
  73. * The type of this form control. This the string "textarea".
  74. */
  75. public String getType();
  76. /**
  77. * Represents the current contents of the corresponding form control, in
  78. * an interactive user agent. Changing this attribute changes the
  79. * contents of the form control, but does not change the contents of the
  80. * element. If the entirety of the data can not fit into a single
  81. * <code>DOMString</code> , the implementation may truncate the data.
  82. */
  83. public String getValue();
  84. public void setValue(String value);
  85. /**
  86. * Removes keyboard focus from this element.
  87. */
  88. public void blur();
  89. /**
  90. * Gives keyboard focus to this element.
  91. */
  92. public void focus();
  93. /**
  94. * Select the contents of the <code>TEXTAREA</code> .
  95. */
  96. public void select();
  97. }