Package com.smartgwt.client.widgets

Examples of com.smartgwt.client.widgets.RichTextEditor


        htmlCanvas.setOverflow(Overflow.HIDDEN);
        htmlCanvas.setCanDragResize(true);
        htmlCanvas.setShowEdges(true);
        htmlCanvas.setContents("Click <b>Set Canvas HTML</b> to display edited content.");

        final RichTextEditor richTextEditor = new RichTextEditor();
        richTextEditor.setHeight(155);
        richTextEditor.setOverflow(Overflow.HIDDEN);
        richTextEditor.setCanDragResize(true);
        richTextEditor.setShowEdges(true);

        // Standard control group options include
        // "fontControls", "formatControls", "styleControls" and "colorControls"
        //richTextEditor.setControlGroups(new String[]{"fontControls", "styleControls"});
        richTextEditor.setValue(ajaxDefinition);
        layout.addMember(richTextEditor);

        IButton button = new IButton("Set Canvas HTML");
        button.setWidth(150);
        button.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                htmlCanvas.setContents(richTextEditor.getValue());
            }
        });

        layout.addMember(button);
        layout.addMember(htmlCanvas);
View Full Code Here


    this.toInput = new EmailAddressInputLine( "to", TextProvider.get().window_compose_message_label_to() );
    this.ccInput = new EmailAddressInputLine( "cc", TextProvider.get().window_compose_message_label_cc() );
    this.bccInput = new EmailAddressInputLine( "bcc", TextProvider.get().window_compose_message_label_bcc() );

    this.richtTextEditor = new RichTextEditor();
    this.richtTextEditor.setWidth100();
    this.richtTextEditor.setHeight100();
    this.richtTextEditor.setOverflow( Overflow.VISIBLE );
    this.richtTextEditor.setShowEdges( true );
View Full Code Here

TOP

Related Classes of com.smartgwt.client.widgets.RichTextEditor

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.