Java 类javax.swing.text.html.ParagraphView 实例源码

项目:jitsi    文件:SIPCommHTMLEditorKit.java   
@Override
public View create(Element elem)
{
    View view = super.create(elem);

    viewCreated(this, view);

    if (view instanceof ParagraphView)
    {
        return new ParagraphViewX(elem);
    }
    else if (view instanceof ComponentView)
    {
        return new MyComponentView(elem);
    }

    return view;
}
项目:SmartQQ4IntelliJ    文件:WrapHTMLFactory.java   
@Override
public View create(Element elem) {
    View v = super.create(elem);
    if (v instanceof InlineView) {
        return new WrapInlineView(elem);
    }
    else if (v instanceof ParagraphView) {
        return new WrapParagraphView(elem);
    }
    return v;
}