1 57 package com.sun.org.apache.wml.internal.dom; 58 59 import com.sun.org.apache.wml.internal.*; 60 61 65 66 public class WMLInputElementImpl extends WMLElementImpl implements WMLInputElement { 67 68 public WMLInputElementImpl (WMLDocumentImpl owner, String tagName) { 69 super( owner, tagName); 70 } 71 72 public void setSize(int newValue) { 73 setAttribute("size", newValue); 74 } 75 76 public int getSize() { 77 return getAttribute("size", 0); 78 } 79 80 public void setFormat(String newValue) { 81 setAttribute("format", newValue); 82 } 83 84 public String getFormat() { 85 return getAttribute("format"); 86 } 87 88 public void setValue(String newValue) { 89 setAttribute("value", newValue); 90 } 91 92 public String getValue() { 93 return getAttribute("value"); 94 } 95 96 public void setMaxLength(int newValue) { 97 setAttribute("maxlength", newValue); 98 } 99 100 public int getMaxLength() { 101 return getAttribute("maxlength", 0); 102 } 103 104 public void setTabIndex(int newValue) { 105 setAttribute("tabindex", newValue); 106 } 107 108 public int getTabIndex() { 109 return getAttribute("tabindex", 0); 110 } 111 112 public void setClassName(String newValue) { 113 setAttribute("class", newValue); 114 } 115 116 public String getClassName() { 117 return getAttribute("class"); 118 } 119 120 public void setXmlLang(String newValue) { 121 setAttribute("xml:lang", newValue); 122 } 123 124 public String getXmlLang() { 125 return getAttribute("xml:lang"); 126 } 127 128 public void setEmptyOk(boolean newValue) { 129 setAttribute("emptyok", newValue); 130 } 131 132 public boolean getEmptyOk() { 133 return getAttribute("emptyok", false); 134 } 135 136 public void setTitle(String newValue) { 137 setAttribute("title", newValue); 138 } 139 140 public String getTitle() { 141 return getAttribute("title"); 142 } 143 144 public void setId(String newValue) { 145 setAttribute("id", newValue); 146 } 147 148 public String getId() { 149 return getAttribute("id"); 150 } 151 152 public void setType(String newValue) { 153 setAttribute("type", newValue); 154 } 155 156 public String getType() { 157 return getAttribute("type"); 158 } 159 160 public void setName(String newValue) { 161 setAttribute("name", newValue); 162 } 163 164 public String getName() { 165 return getAttribute("name"); 166 } 167 168 } 169 | Popular Tags |