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: WMLSelectElementImpl.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 WMLSelectElementImpl extends WMLElementImpl implements
027: WMLSelectElement {
028:
029: private static final long serialVersionUID = 6489112443257247261L;
030:
031: public WMLSelectElementImpl(WMLDocumentImpl owner, String tagName) {
032: super (owner, tagName);
033: }
034:
035: public void setMultiple(boolean newValue) {
036: setAttribute("multiple", newValue);
037: }
038:
039: public boolean getMultiple() {
040: return getAttribute("multiple", false);
041: }
042:
043: public void setValue(String newValue) {
044: setAttribute("value", newValue);
045: }
046:
047: public String getValue() {
048: return getAttribute("value");
049: }
050:
051: public void setTabIndex(int newValue) {
052: setAttribute("tabindex", newValue);
053: }
054:
055: public int getTabIndex() {
056: return getAttribute("tabindex", 0);
057: }
058:
059: public void setClassName(String newValue) {
060: setAttribute("class", newValue);
061: }
062:
063: public String getClassName() {
064: return getAttribute("class");
065: }
066:
067: public void setXmlLang(String newValue) {
068: setAttribute("xml:lang", newValue);
069: }
070:
071: public String getXmlLang() {
072: return getAttribute("xml:lang");
073: }
074:
075: public void setTitle(String newValue) {
076: setAttribute("title", newValue);
077: }
078:
079: public String getTitle() {
080: return getAttribute("title");
081: }
082:
083: public void setIValue(String newValue) {
084: setAttribute("ivalue", newValue);
085: }
086:
087: public String getIValue() {
088: return getAttribute("ivalue");
089: }
090:
091: public void setId(String newValue) {
092: setAttribute("id", newValue);
093: }
094:
095: public String getId() {
096: return getAttribute("id");
097: }
098:
099: public void setIName(String newValue) {
100: setAttribute("iname", newValue);
101: }
102:
103: public String getIName() {
104: return getAttribute("iname");
105: }
106:
107: public void setName(String newValue) {
108: setAttribute("name", newValue);
109: }
110:
111: public String getName() {
112: return getAttribute("name");
113: }
114: }
|