001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package org.apache.wml;
018:
019: /**
020: * <p>The interface is modeled after DOM1 Spec for HTML from W3C.
021: * The DTD used in this DOM model is from
022: * <a href="http://www.wapforum.org/DTD/wml_1.1.xml">
023: * http://www.wapforum.org/DTD/wml_1.1.xml</a></p>
024: *
025: * <p>'img' specifies an image in a text flow
026: * (Section 11.9, WAP WML Version 16-Jun-1999)</p>
027: *
028: * @version $Id: WMLImgElement.java 447258 2006-09-18 05:41:23Z mrglavas $
029: * @author <a href="mailto:david@topware.com.tw">David Li</a>
030: */
031: public interface WMLImgElement extends WMLElement {
032:
033: /**
034: * 'alt' specifies an alternative text for the image
035: * (Section 11.9, WAP WML Version 16-Jun-1999)
036: */
037: public void setAlt(String newValue);
038:
039: public String getAlt();
040:
041: /**
042: * 'src' specifies URI for the source images
043: * (Section 11.9, WAP WML Version 16-Jun-1999)
044: */
045: public void setSrc(String newValue);
046:
047: public String getSrc();
048:
049: /**
050: * 'localsrc' specifies an alternative internal representation of
051: * the image.
052: * (Section 11.9, WAP WML Version 16-Jun-1999)
053: */
054: public void setLocalSrc(String newValue);
055:
056: public String getLocalSrc();
057:
058: /**
059: * 'vspace' specifies the abount of white space to be inserted
060: * above and below
061: * (Section 11.9, WAP WML Version 16-Jun-1999)
062: */
063: public void setVspace(String newValue);
064:
065: public String getVspace();
066:
067: /**
068: * 'hspace' specifies the abount of white space to be inserted
069: * left and right
070: * (Section 11.9, WAP WML Version 16-Jun-1999)
071: */
072: public void setHspace(String newValue);
073:
074: public String getHspace();
075:
076: /**
077: * 'align' specifies the alignment of the image within the text
078: * flow.
079: * (Section 11.8, WAP WML Version 16-Jun-1999)
080: */
081: public void setAlign(String newValue);
082:
083: public String getAlign();
084:
085: /**
086: * 'width' specifies the width of an image.
087: * (Section 11.9, WAP WML Version 16-Jun-1999)
088: */
089: public void setWidth(String newValue);
090:
091: public String getWidth();
092:
093: /**
094: * 'height' specifies the height of an image.
095: * (Section 11.9, WAP WML Version 16-Jun-1999)
096: */
097: public void setHeight(String newValue);
098:
099: public String getHeight();
100:
101: /**
102: * The xml:lang that specifics the natural or formal language in
103: * which the document is written.
104: * (Section 8.8, WAP WML Version 16-Jun-1999)
105: */
106: public void setXmlLang(String newValue);
107:
108: public String getXmlLang();
109: }
|