1 38 package com.gargoylesoftware.htmlunit.html; 39 40 import com.gargoylesoftware.htmlunit.Assert; 41 import com.gargoylesoftware.htmlunit.KeyValuePair; 42 43 import java.util.Map ; 44 45 54 public class HtmlIsIndex extends StyledElement implements SubmittableElement { 55 56 57 public static final String TAG_NAME = "isindex"; 58 59 private String value_ = ""; 60 61 67 public HtmlIsIndex( final HtmlPage page, final Map attributes) { 68 super(page, attributes); 69 } 70 71 74 public String getTagName() { 75 return TAG_NAME; 76 } 77 78 83 public void setValue( final String newValue ) { 84 Assert.notNull("newValue", newValue); 85 value_ = newValue; 86 } 87 88 89 94 public String getValue() { 95 return value_; 96 } 97 98 99 108 public KeyValuePair[] getSubmitKeyValuePairs() { 109 return new KeyValuePair[]{new KeyValuePair( getPromptAttribute(), getValue() )}; 110 } 111 112 113 116 public void reset() { 117 value_ = ""; 118 } 119 120 121 129 public final String getLangAttribute() { 130 return getAttributeValue("lang"); 131 } 132 133 134 142 public final String getXmlLangAttribute() { 143 return getAttributeValue("xml:lang"); 144 } 145 146 147 155 public final String getTextDirectionAttribute() { 156 return getAttributeValue("dir"); 157 } 158 159 160 168 public final String getPromptAttribute() { 169 return getAttributeValue("prompt"); 170 } 171 } 172 | Popular Tags |