KickJava   Java API By Example, From Geeks To Geeks.

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


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>'p' element specifies a paragraph
25  * (Section 11.8.3, WAP WML Version 16-Jun-1999)</p>
26  *
27  * @version $Id: WMLPElement.java,v 1.2 2004/02/24 23:34:05 mrglavas Exp $
28  * @author <a HREF="mailto:david@topware.com.tw">David Li</a>
29  */

30
31 public interface WMLPElement extends WMLElement {
32
33     /**
34      * 'mode' specifies the wrapping mode of the paragraph.
35      * The legal values are 'wrap' and 'nowrap'
36      * (Section 11.8.3, WAP WML Version 16-Jun-1999)
37      */

38     public void setMode(String JavaDoc newValue);
39     public String JavaDoc getMode();
40
41     /**
42      * 'align' specifies the align of teh paragraph
43      * The legal values are 'left,' 'center,' and 'right'
44      * (Section 11.8.3, WAP WML Version 16-Jun-1999)
45      */

46     public void setAlign(String JavaDoc newValue);
47     public String JavaDoc getAlign();
48
49     /**
50      * The xml:lang that specifics the natural or formal language in
51      * which the document is written.
52      * (Section 8.8, WAP WML Version 16-Jun-1999)
53      */

54     public void setXmlLang(String JavaDoc newValue);
55     public String JavaDoc getXmlLang();
56 }
57
Popular Tags