@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; }
@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; }