2
* The Apache Software License, Version 1.1
5
* Copyright (c) 1999,2000 The Apache Software Foundation. All rights
8
* Redistribution and use in source and binary forms, with or without
9
* modification, are permitted provided that the following conditions
12
* 1. Redistributions of source code must retain the above copyright
13
* notice, this list of conditions and the following disclaimer.
15
* 2. Redistributions in binary form must reproduce the above copyright
16
* notice, this list of conditions and the following disclaimer in
17
* the documentation and/or other materials provided with the
20
* 3. The end-user documentation included with the redistribution,
21
* if any, must include the following acknowledgment:
22
* "This product includes software developed by the
23
* Apache Software Foundation (http://www.apache.org/)."
24
* Alternately, this acknowledgment may appear in the software itself,
25
* if and wherever such third-party acknowledgments normally appear.
27
* 4. The names "Xerces" and "Apache Software Foundation" must
28
* not be used to endorse or promote products derived from this
29
* software without prior written permission. For written
30
* permission, please contact apache@apache.org.
32
* 5. Products derived from this software may not be called "Apache",
33
* nor may "Apache" appear in their name, without prior written
34
* permission of the Apache Software Foundation.
36
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
37
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
38
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
39
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
40
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
41
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
42
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
43
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
44
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
45
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
46
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
48
* ====================================================================
50
* This software consists of voluntary contributions made by many
51
* individuals on behalf of the Apache Software Foundation and was
52
* originally based on software copyright (c) 1999, International
53
* Business Machines, Inc., http://www.apache.org. For more
54
* information on the Apache Software Foundation, please see
55
* <http://www.apache.org/>.
2
* Copyright 1999,2000,2004,2005 The Apache Software Foundation.
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
8
* http://www.apache.org/licenses/LICENSE-2.0
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
57
16
package org.apache.wml.dom;
59
18
import org.apache.wml.*;
62
* @version $Id: WMLCardElementImpl.java,v 1.1 2000/04/23 18:07:47 david Exp $
22
* @version $Id: WMLCardElementImpl.java 320584 2005-09-30 21:43:35Z mrglavas $
63
23
* @author <a href="mailto:david@topware.com.tw">David Li</a>
66
25
public class WMLCardElementImpl extends WMLElementImpl implements WMLCardElement {
27
private static final long serialVersionUID = -3571126568344328924L;
68
29
public WMLCardElementImpl (WMLDocumentImpl owner, String tagName) {
69
super( owner, tagName);
30
super( owner, tagName);
72
33
public void setOnTimer(String newValue) {
73
setAttribute("ontimer", newValue);
34
setAttribute("ontimer", newValue);
76
37
public String getOnTimer() {
77
return getAttribute("ontimer");
38
return getAttribute("ontimer");
80
41
public void setOrdered(boolean newValue) {
81
setAttribute("ordered", newValue);
42
setAttribute("ordered", newValue);
84
45
public boolean getOrdered() {
85
return getAttribute("ordered", true);
46
return getAttribute("ordered", true);
88
49
public void setOnEnterBackward(String newValue) {
89
setAttribute("onenterbackward", newValue);
50
setAttribute("onenterbackward", newValue);
92
53
public String getOnEnterBackward() {
93
return getAttribute("onenterbackward");
54
return getAttribute("onenterbackward");
96
57
public void setClassName(String newValue) {
97
setAttribute("class", newValue);
58
setAttribute("class", newValue);
100
61
public String getClassName() {
101
return getAttribute("class");
62
return getAttribute("class");
104
65
public void setXmlLang(String newValue) {
105
setAttribute("xml:lang", newValue);
66
setAttribute("xml:lang", newValue);
108
69
public String getXmlLang() {
109
return getAttribute("xml:lang");
70
return getAttribute("xml:lang");
112
73
public void setTitle(String newValue) {
113
setAttribute("title", newValue);
74
setAttribute("title", newValue);
116
77
public String getTitle() {
117
return getAttribute("title");
78
return getAttribute("title");
120
81
public void setNewContext(boolean newValue) {
121
setAttribute("newcontext", newValue);
82
setAttribute("newcontext", newValue);
124
85
public boolean getNewContext() {
125
return getAttribute("newcontext", false);
86
return getAttribute("newcontext", false);
128
89
public void setId(String newValue) {
129
setAttribute("id", newValue);
90
setAttribute("id", newValue);
132
93
public String getId() {
133
return getAttribute("id");
94
return getAttribute("id");
136
97
public void setOnEnterForward(String newValue) {
137
setAttribute("onenterforward", newValue);
98
setAttribute("onenterforward", newValue);
140
101
public String getOnEnterForward() {
141
return getAttribute("onenterforward");
102
return getAttribute("onenterforward");