KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > wml > WMLCardElement


1 /*
2  * Copyright 1999,2000,2004 The Apache Software Foundation.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */

16 package org.apache.wml;
17
18 /**
19  * <p>The interface is modeled after DOM1 Spec for HTML from W3C.
20  * The DTD used in this DOM model is from
21  * <a HREF="http://www.wapforum.org/DTD/wml_1.1.xml">
22  * http://www.wapforum.org/DTD/wml_1.1.xml</a></p>
23  *
24  * <p>'card' element is the basic display unit of WML. A WML decks
25  * contains a collection of cards.
26  * (Section 11.5, WAP WML Version 16-Jun-1999)</p>
27  *
28  * @version $Id: WMLCardElement.java,v 1.2 2004/02/24 23:34:05 mrglavas Exp $
29  * @author <a HREF="mailto:david@topware.com.tw">David Li</a>
30  */

31
32 public interface WMLCardElement extends WMLElement {
33
34     /**
35      * 'onenterbackward' specifies the event to occur when a user
36      * agent into a card using a 'go' task
37      * (Section 11.5.1, WAP WML Version 16-Jun-1999)
38      */

39     public void setOnEnterBackward(String JavaDoc href);
40     public String JavaDoc getOnEnterBackward();
41
42     /**
43      * 'onenterforward' specifies the event to occur when a user
44      * agent into a card using a 'prev' task
45      * (Section 11.5.1, WAP WML Version 16-Jun-1999)
46      */

47     public void setOnEnterForward(String JavaDoc href);
48     public String JavaDoc getOnEnterForward();
49
50     /**
51      * 'onenterbackward' specifies the event to occur when a timer expires
52      * (Section 11.5.1, WAP WML Version 16-Jun-1999)
53      */

54     public void setOnTimer(String JavaDoc href);
55     public String JavaDoc getOnTimer();
56
57     /**
58      * 'title' specifies a advisory info about the card
59      * (Section 11.5.2, WAP WML Version 16-Jun-1999)
60      */

61     public void setTitle(String JavaDoc newValue);
62     public String JavaDoc getTitle();
63
64     /**
65      * 'newcontext' specifies whether a browser context should be
66      * re-initialized upon entering the card. Default to be false.
67      * (Section 11.5.2, WAP WML Version 16-Jun-1999)
68      */

69     public void setNewContext(boolean newValue);
70     public boolean getNewContext();
71     
72     /**
73      * 'ordered' attribute specifies a hit to user agent about the
74      * organization of the card's content
75      * (Section 11.5.2, WAP WML Version 16-Jun-1999)
76      */

77     public void setOrdered(boolean newValue);
78     public boolean getOrdered();
79
80     /**
81      * 'xml:lang' specifics the natural or formal language in which
82      * the document is written.
83      * (Section 8.8, WAP WML Version 16-Jun-1999)
84      */

85     public void setXmlLang(String JavaDoc newValue);
86     public String JavaDoc getXmlLang();
87 }
88
Popular Tags