001    package org.util.xml.renderer.html;
002    
003    import org.util.xml.parse.policy.*;
004    import org.util.xml.parse.*;
005    import org.util.xml.element.*;
006    import javax.swing.*;
007    
008    public class Div extends JLabel implements ParserPolicy {
009    
010            
011            public Div(String html) {
012                    setText(html);
013            }
014            public void parse() {
015                    
016            }
017            public boolean throwExceptionIfDocumentHasError() {
018                    return false;
019            }
020            public boolean checkEndTag() {
021                    return false;
022            }
023            public ParserPolicy getInnerPolicy(Element element) {
024                    return this;
025            }
026            public String selectEncoding(String last_tag_key) {
027                    return "utf-8";
028            }
029            public boolean forceEmptyTag(String key) {
030                    return false;
031            }
032            public Element startElement(Element element) {
033                    return element;
034            }
035            public Element allowElement(Element element) {
036                    return element;
037            }
038    }