01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.wml;
18:
19: /**
20: * <p>The interface is modeled after DOM1 Spec for HTML from W3C.
21: * The DTD used in this DOM model is from
22: * <a href="http://www.wapforum.org/DTD/wml_1.1.xml">
23: * http://www.wapforum.org/DTD/wml_1.1.xml</a></p>
24: *
25: * <p>'card' element is the basic display unit of WML. A WML decks
26: * contains a collection of cards.
27: * (Section 11.5, WAP WML Version 16-Jun-1999)</p>
28: *
29: * @version $Id: WMLCardElement.java 447258 2006-09-18 05:41:23Z mrglavas $
30: * @author <a href="mailto:david@topware.com.tw">David Li</a>
31: */
32:
33: public interface WMLCardElement extends WMLElement {
34:
35: /**
36: * 'onenterbackward' specifies the event to occur when a user
37: * agent into a card using a 'go' task
38: * (Section 11.5.1, WAP WML Version 16-Jun-1999)
39: */
40: public void setOnEnterBackward(String href);
41:
42: public String getOnEnterBackward();
43:
44: /**
45: * 'onenterforward' specifies the event to occur when a user
46: * agent into a card using a 'prev' task
47: * (Section 11.5.1, WAP WML Version 16-Jun-1999)
48: */
49: public void setOnEnterForward(String href);
50:
51: public String getOnEnterForward();
52:
53: /**
54: * 'onenterbackward' specifies the event to occur when a timer expires
55: * (Section 11.5.1, WAP WML Version 16-Jun-1999)
56: */
57: public void setOnTimer(String href);
58:
59: public String getOnTimer();
60:
61: /**
62: * 'title' specifies a advisory info about the card
63: * (Section 11.5.2, WAP WML Version 16-Jun-1999)
64: */
65: public void setTitle(String newValue);
66:
67: public String getTitle();
68:
69: /**
70: * 'newcontext' specifies whether a browser context should be
71: * re-initialized upon entering the card. Default to be false.
72: * (Section 11.5.2, WAP WML Version 16-Jun-1999)
73: */
74: public void setNewContext(boolean newValue);
75:
76: public boolean getNewContext();
77:
78: /**
79: * 'ordered' attribute specifies a hit to user agent about the
80: * organization of the card's content
81: * (Section 11.5.2, WAP WML Version 16-Jun-1999)
82: */
83: public void setOrdered(boolean newValue);
84:
85: public boolean getOrdered();
86:
87: /**
88: * 'xml:lang' specifics the natural or formal language in which
89: * the document is written.
90: * (Section 8.8, WAP WML Version 16-Jun-1999)
91: */
92: public void setXmlLang(String newValue);
93:
94: public String getXmlLang();
95: }
|