001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package org.apache.wml.dom;
018:
019: import org.apache.wml.*;
020:
021: /**
022: * @xerces.internal
023: * @version $Id: WMLInputElementImpl.java 447257 2006-09-18 05:40:07Z mrglavas $
024: * @author <a href="mailto:david@topware.com.tw">David Li</a>
025: */
026: public class WMLInputElementImpl extends WMLElementImpl implements
027: WMLInputElement {
028:
029: private static final long serialVersionUID = 2897319793637966619L;
030:
031: public WMLInputElementImpl(WMLDocumentImpl owner, String tagName) {
032: super (owner, tagName);
033: }
034:
035: public void setSize(int newValue) {
036: setAttribute("size", newValue);
037: }
038:
039: public int getSize() {
040: return getAttribute("size", 0);
041: }
042:
043: public void setFormat(String newValue) {
044: setAttribute("format", newValue);
045: }
046:
047: public String getFormat() {
048: return getAttribute("format");
049: }
050:
051: public void setValue(String newValue) {
052: setAttribute("value", newValue);
053: }
054:
055: public String getValue() {
056: return getAttribute("value");
057: }
058:
059: public void setMaxLength(int newValue) {
060: setAttribute("maxlength", newValue);
061: }
062:
063: public int getMaxLength() {
064: return getAttribute("maxlength", 0);
065: }
066:
067: public void setTabIndex(int newValue) {
068: setAttribute("tabindex", newValue);
069: }
070:
071: public int getTabIndex() {
072: return getAttribute("tabindex", 0);
073: }
074:
075: public void setClassName(String newValue) {
076: setAttribute("class", newValue);
077: }
078:
079: public String getClassName() {
080: return getAttribute("class");
081: }
082:
083: public void setXmlLang(String newValue) {
084: setAttribute("xml:lang", newValue);
085: }
086:
087: public String getXmlLang() {
088: return getAttribute("xml:lang");
089: }
090:
091: public void setEmptyOk(boolean newValue) {
092: setAttribute("emptyok", newValue);
093: }
094:
095: public boolean getEmptyOk() {
096: return getAttribute("emptyok", false);
097: }
098:
099: public void setTitle(String newValue) {
100: setAttribute("title", newValue);
101: }
102:
103: public String getTitle() {
104: return getAttribute("title");
105: }
106:
107: public void setId(String newValue) {
108: setAttribute("id", newValue);
109: }
110:
111: public String getId() {
112: return getAttribute("id");
113: }
114:
115: public void setType(String newValue) {
116: setAttribute("type", newValue);
117: }
118:
119: public String getType() {
120: return getAttribute("type");
121: }
122:
123: public void setName(String newValue) {
124: setAttribute("name", newValue);
125: }
126:
127: public String getName() {
128: return getAttribute("name");
129: }
130:
131: }
|