-
- All Implemented Interfaces:
-
kotlin.collections.Map
public final class DOMAttributes implements Map<String, String>
Represents HTML attributes of a DOM element.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringactionprivate final Stringaltprivate final Booleanasyncprivate final Booleanautocompleteprivate final Booleanautofocusprivate final Booleanautoplayprivate final Charsetcharsetprivate final Booleancheckedprivate final Stringclassprivate final List<String>classesprivate final Integercolsprivate final Stringdataprivate final Stringforprivate final Stringformprivate final Integerheightprivate final Stringhrefprivate final Stringidprivate final Stringlangprivate final Stringmethodprivate final Stringnameprivate final Stringpatternprivate final Stringplaceholderprivate final Integerrowsprivate final Integerrowspanprivate final Booleanselectedprivate final IntegerinputSizeprivate final Booleanreadonlyprivate final Stringrelprivate final Booleanrequiredprivate final Stringsrcprivate final Stringstyleprivate final Stringtitleprivate final Stringtypeprivate final Stringvalueprivate final Integerwidthprivate final Set<Entry.Map<String, String>>entriesprivate final Set<String>keysprivate final Integersizeprivate final Collection<String>values
-
Constructor Summary
Constructors Constructor Description DOMAttributes(Map<String, String> attributesMap)
-
Method Summary
Modifier and Type Method Description final StringgetAction()Specifies where to send the form-data when a form is submitted. final StringgetAlt()Specifies an alternate text when the original element fails to display. final BooleangetAsync()Specifies that the script is executed asynchronously (only for external scripts). final BooleangetAutocomplete()Specifies whether the <form> or the <input> element should have autocomplete enabledBelongs to: <form>,<input>final BooleangetAutofocus()Specifies that the element should automatically get focus when the page loads. final BooleangetAutoplay()Specifies that the audio/video will start playing as soon as it is ready. final CharsetgetCharset()Specifies the character encoding. final BooleangetChecked()Specifies that an <input> element should be pre-selected when the page loads (for type="checkbox" or type="radio"). final StringgetClass()Specifies one or more classnames for an element (refers to a class in a style sheet) final List<String>getClasses()Specifies one or more classnames for an element (refers to a class in a style sheet) final IntegergetCols()Specifies the visible width of a text area. final StringgetData()Specifies the URL of the resource to be used by the object. final StringgetFor()Specifies which form element(s) a label/calculation is bound to. final StringgetForm()Specifies the name of the form the element belongs to. final IntegergetHeight()Specifies the height of the element. final StringgetHref()Specifies the URL of the page the link goes to. final StringgetId()Specifies a unique id for an element. final StringgetLang()Specifies the language of the element's content. final StringgetMethod()Specifies the HTTP method to use when sending form-data. final StringgetName()Specifies the name of the element. final StringgetPattern()Specifies a regular expression that an <input>element's value is checked against.final StringgetPlaceholder()Specifies a short hint that describes the expected value of the element. final IntegergetRows()Specifies the visible number of lines in a text area. final IntegergetRowspan()Specifies the number of rows a table cell should span. final BooleangetSelected()Specifies that an option should be pre-selected when the page loads. final IntegergetInputSize()Specifies the width, in characters (for <input>) or specifies the number of visible options (for <select>). final BooleangetReadonly()Specifies that the element is read-only. final StringgetRel()Specifies the relationship between the current document and the linked document. final BooleangetRequired()Specifies that the element must be filled out before submitting the form. final StringgetSrc()Specifies the URL of the media file. final StringgetStyle()Specifies an inline CSS style for an element. final StringgetTitle()Specifies extra information about an element. final StringgetType()Specifies the type of element. final StringgetValue()Specifies the value of the element. final IntegergetWidth()Specifies the width of the element. -
-
Method Detail
-
getAction
final String getAction()
Specifies where to send the form-data when a form is submitted.
Belongs to:
<form>
-
getAlt
final String getAlt()
Specifies an alternate text when the original element fails to display.
Belongs to:
<area>,<img>,<input>
-
getAsync
final Boolean getAsync()
Specifies that the script is executed asynchronously (only for external scripts).
Belongs to:
<script>
-
getAutocomplete
final Boolean getAutocomplete()
Specifies whether the <form> or the <input> element should have autocomplete enabled
Belongs to:
<form>,<input>
-
getAutofocus
final Boolean getAutofocus()
Specifies that the element should automatically get focus when the page loads.
Belongs to:
<button>,<input>,<select>,<textarea>
-
getAutoplay
final Boolean getAutoplay()
Specifies that the audio/video will start playing as soon as it is ready.
Belongs to:
<audio>,<video>
-
getCharset
final Charset getCharset()
Specifies the character encoding.
Belongs to:
<meta>,<script>
-
getChecked
final Boolean getChecked()
Specifies that an <input> element should be pre-selected when the page loads (for type="checkbox" or type="radio").
Belongs to:
<input>
-
getClass
final String getClass()
Specifies one or more classnames for an element (refers to a class in a style sheet)
-
getClasses
final List<String> getClasses()
Specifies one or more classnames for an element (refers to a class in a style sheet)
-
getData
final String getData()
Specifies the URL of the resource to be used by the object.
Belongs to:
<object>
-
getFor
final String getFor()
Specifies which form element(s) a label/calculation is bound to.
Belongs to:
<label>
-
getForm
final String getForm()
Specifies the name of the form the element belongs to.
Belongs to:
<button>,<fieldset>,<input>,<label>,<meter>,<object>,<output>,<select>,<textarea>
-
getHeight
final Integer getHeight()
Specifies the height of the element.
Belongs to:
<canvas>,<embed>,<iframe>,<img>,<input>,<object>,<video>
-
getHref
final String getHref()
Specifies the URL of the page the link goes to.
Belongs to:
<a>,<area>,<base>,<link>
-
getMethod
final String getMethod()
Specifies the HTTP method to use when sending form-data.
Belongs to:
<form>
-
getName
final String getName()
Specifies the name of the element.
Belongs to:
<button>,<fieldset>,<form>,<iframe>,<input>,<map>,<meta>,<object>,<output>,<param>,<select>,<textarea>
-
getPattern
final String getPattern()
Specifies a regular expression that an
<input>element's value is checked against.Belongs to:
<input>
-
getPlaceholder
final String getPlaceholder()
Specifies a short hint that describes the expected value of the element.
Belongs to:
<input>,<textarea>
-
getRows
final Integer getRows()
Specifies the visible number of lines in a text area.
Belongs to:
<textarea>
-
getRowspan
final Integer getRowspan()
Specifies the number of rows a table cell should span.
Belongs to:
<td>,<th>
-
getSelected
final Boolean getSelected()
Specifies that an option should be pre-selected when the page loads.
Belongs to:
<option>
-
getInputSize
final Integer getInputSize()
Specifies the width, in characters (for <input>) or specifies the number of visible options (for <select>).
Belongs to:
<input>,<select>
-
getReadonly
final Boolean getReadonly()
Specifies that the element is read-only.
Belongs to:
<input>,<textarea>
-
getRel
final String getRel()
Specifies the relationship between the current document and the linked document.
Belongs to:
<a>,<area>,<form>,<link>
-
getRequired
final Boolean getRequired()
Specifies that the element must be filled out before submitting the form.
Belongs to:
<input>,<select>,<textarea>
-
getSrc
final String getSrc()
Specifies the URL of the media file.
Belongs to:
<audio>,<embed>,<iframe>,<img>,<input>,<script>,<source>,<track>,<video>
-
getType
final String getType()
Specifies the type of element.
Belongs to:
<a>,<button>,<embed>,<input>,<link>,<menu>,<object>,<script>,<source>,<style>
-
getValue
final String getValue()
Specifies the value of the element.
Belongs to:
<button>,<input>,<li>,<option>,<meter>,<progress>,<param>
-
-
-
-