Package com.ponysdk.ui.server.basic

Examples of com.ponysdk.ui.server.basic.PRichTextArea


    @Override
    protected void onFirstShowPage() {
        super.onFirstShowPage();

        final PScrollPanel scroll = new PScrollPanel();
        final PRichTextArea richTextArea = new PRichTextArea();
        final PRichTextToolbar richTextToolbar = new PRichTextToolbar(richTextArea);

        richTextArea.addValueChangeHandler(new PValueChangeHandler<String>() {

            @Override
            public void onValueChange(final PValueChangeEvent<String> event) {
                System.err.println(richTextArea.getHTML());
            }
        });

        final PFlowPanel flow = new PFlowPanel();
        flow.add(new PLabel("Edit rich content"));
        flow.add(richTextToolbar);
        flow.add(richTextArea);
        flow.add(buildCustomToolbar(richTextArea));
        scroll.setWidget(flow);
        examplePanel.setWidget(scroll);

        richTextArea.setWidth("100%");
    }
View Full Code Here

TOP

Related Classes of com.ponysdk.ui.server.basic.PRichTextArea

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.