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>'p' element specifies a paragraph
26: * (Section 11.8.3, WAP WML Version 16-Jun-1999)</p>
27: *
28: * @version $Id: WMLPElement.java 447258 2006-09-18 05:41:23Z mrglavas $
29: * @author <a href="mailto:david@topware.com.tw">David Li</a>
30: */
31:
32: public interface WMLPElement extends WMLElement {
33:
34: /**
35: * 'mode' specifies the wrapping mode of the paragraph.
36: * The legal values are 'wrap' and 'nowrap'
37: * (Section 11.8.3, WAP WML Version 16-Jun-1999)
38: */
39: public void setMode(String newValue);
40:
41: public String getMode();
42:
43: /**
44: * 'align' specifies the align of teh paragraph
45: * The legal values are 'left,' 'center,' and 'right'
46: * (Section 11.8.3, WAP WML Version 16-Jun-1999)
47: */
48: public void setAlign(String newValue);
49:
50: public String getAlign();
51:
52: /**
53: * The xml:lang that specifics the natural or formal language in
54: * which the document is written.
55: * (Section 8.8, WAP WML Version 16-Jun-1999)
56: */
57: public void setXmlLang(String newValue);
58:
59: public String getXmlLang();
60: }
|