1 16 package org.apache.wml.dom; 17 18 import org.apache.wml.*; 19 20 25 public class WMLInputElementImpl extends WMLElementImpl implements WMLInputElement { 26 27 private static final long serialVersionUID = 3618705209837041975L; 28 29 public WMLInputElementImpl (WMLDocumentImpl owner, String tagName) { 30 super( owner, tagName); 31 } 32 33 public void setSize(int newValue) { 34 setAttribute("size", newValue); 35 } 36 37 public int getSize() { 38 return getAttribute("size", 0); 39 } 40 41 public void setFormat(String newValue) { 42 setAttribute("format", newValue); 43 } 44 45 public String getFormat() { 46 return getAttribute("format"); 47 } 48 49 public void setValue(String newValue) { 50 setAttribute("value", newValue); 51 } 52 53 public String getValue() { 54 return getAttribute("value"); 55 } 56 57 public void setMaxLength(int newValue) { 58 setAttribute("maxlength", newValue); 59 } 60 61 public int getMaxLength() { 62 return getAttribute("maxlength", 0); 63 } 64 65 public void setTabIndex(int newValue) { 66 setAttribute("tabindex", newValue); 67 } 68 69 public int getTabIndex() { 70 return getAttribute("tabindex", 0); 71 } 72 73 public void setClassName(String newValue) { 74 setAttribute("class", newValue); 75 } 76 77 public String getClassName() { 78 return getAttribute("class"); 79 } 80 81 public void setXmlLang(String newValue) { 82 setAttribute("xml:lang", newValue); 83 } 84 85 public String getXmlLang() { 86 return getAttribute("xml:lang"); 87 } 88 89 public void setEmptyOk(boolean newValue) { 90 setAttribute("emptyok", newValue); 91 } 92 93 public boolean getEmptyOk() { 94 return getAttribute("emptyok", false); 95 } 96 97 public void setTitle(String newValue) { 98 setAttribute("title", newValue); 99 } 100 101 public String getTitle() { 102 return getAttribute("title"); 103 } 104 105 public void setId(String newValue) { 106 setAttribute("id", newValue); 107 } 108 109 public String getId() { 110 return getAttribute("id"); 111 } 112 113 public void setType(String newValue) { 114 setAttribute("type", newValue); 115 } 116 117 public String getType() { 118 return getAttribute("type"); 119 } 120 121 public void setName(String newValue) { 122 setAttribute("name", newValue); 123 } 124 125 public String getName() { 126 return getAttribute("name"); 127 } 128 129 } 130 | Popular Tags |