001: /*
002: * The Apache Software License, Version 1.1
003: *
004: *
005: * Copyright (c) 1999,2000 The Apache Software Foundation. All rights
006: * reserved.
007: *
008: * Redistribution and use in source and binary forms, with or without
009: * modification, are permitted provided that the following conditions
010: * are met:
011: *
012: * 1. Redistributions of source code must retain the above copyright
013: * notice, this list of conditions and the following disclaimer.
014: *
015: * 2. Redistributions in binary form must reproduce the above copyright
016: * notice, this list of conditions and the following disclaimer in
017: * the documentation and/or other materials provided with the
018: * distribution.
019: *
020: * 3. The end-user documentation included with the redistribution,
021: * if any, must include the following acknowledgment:
022: * "This product includes software developed by the
023: * Apache Software Foundation (http://www.apache.org/)."
024: * Alternately, this acknowledgment may appear in the software itself,
025: * if and wherever such third-party acknowledgments normally appear.
026: *
027: * 4. The names "Xerces" and "Apache Software Foundation" must
028: * not be used to endorse or promote products derived from this
029: * software without prior written permission. For written
030: * permission, please contact apache@apache.org.
031: *
032: * 5. Products derived from this software may not be called "Apache",
033: * nor may "Apache" appear in their name, without prior written
034: * permission of the Apache Software Foundation.
035: *
036: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
037: * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
038: * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
039: * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
040: * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
041: * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
042: * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
043: * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
044: * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
045: * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
046: * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
047: * SUCH DAMAGE.
048: * ====================================================================
049: *
050: * This software consists of voluntary contributions made by many
051: * individuals on behalf of the Apache Software Foundation and was
052: * originally based on software copyright (c) 1999, International
053: * Business Machines, Inc., http://www.apache.org. For more
054: * information on the Apache Software Foundation, please see
055: * <http://www.apache.org/>.
056: */
057: package org.apache.wml;
058:
059: /**
060: * <p>The interface is modeled after DOM1 Spec for HTML from W3C.
061: * The DTD used in this DOM model is from
062: * <a href="http://www.wapforum.org/DTD/wml_1.1.xml">
063: * http://www.wapforum.org/DTD/wml_1.1.xml</a></p>
064: *
065: * <p>'card' element is the basic display unit of WML. A WML decks
066: * contains a collection of cards.
067: * (Section 11.5, WAP WML Version 16-Jun-1999)</p>
068: *
069: * @version $Id: WMLCardElement.java,v 1.1 2000/04/23 18:07:43 david Exp $
070: * @author <a href="mailto:david@topware.com.tw">David Li</a>
071: */
072:
073: public interface WMLCardElement extends WMLElement {
074:
075: /**
076: * 'onenterbackward' specifies the event to occur when a user
077: * agent into a card using a 'go' task
078: * (Section 11.5.1, WAP WML Version 16-Jun-1999)
079: */
080: public void setOnEnterBackward(String href);
081:
082: public String getOnEnterBackward();
083:
084: /**
085: * 'onenterforward' specifies the event to occur when a user
086: * agent into a card using a 'prev' task
087: * (Section 11.5.1, WAP WML Version 16-Jun-1999)
088: */
089: public void setOnEnterForward(String href);
090:
091: public String getOnEnterForward();
092:
093: /**
094: * 'onenterbackward' specifies the event to occur when a timer expires
095: * (Section 11.5.1, WAP WML Version 16-Jun-1999)
096: */
097: public void setOnTimer(String href);
098:
099: public String getOnTimer();
100:
101: /**
102: * 'title' specifies a advisory info about the card
103: * (Section 11.5.2, WAP WML Version 16-Jun-1999)
104: */
105: public void setTitle(String newValue);
106:
107: public String getTitle();
108:
109: /**
110: * 'newcontext' specifies whether a browser context should be
111: * re-initialized upon entering the card. Default to be false.
112: * (Section 11.5.2, WAP WML Version 16-Jun-1999)
113: */
114: public void setNewContext(boolean newValue);
115:
116: public boolean getNewContext();
117:
118: /**
119: * 'ordered' attribute specifies a hit to user agent about the
120: * organization of the card's content
121: * (Section 11.5.2, WAP WML Version 16-Jun-1999)
122: */
123: public void setOrdered(boolean newValue);
124:
125: public boolean getOrdered();
126:
127: /**
128: * 'xml:lang' specifics the natural or formal language in which
129: * the document is written.
130: * (Section 8.8, WAP WML Version 16-Jun-1999)
131: */
132: public void setXmlLang(String newValue);
133:
134: public String getXmlLang();
135: }
|