All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ksyzt.gwt.client.ui.richeditor.RichBox Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
package com.ksyzt.gwt.client.ui.richeditor;

import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.dom.client.Element;

// TODO: Auto-generated Javadoc

/**
 * The Class RichBox.
 */
public class RichBox extends JavaScriptObject {

    /**
     * Instantiates a new rich box.
     */
    protected RichBox() {

    }

    /**
     * 初始化文本编辑器.
     *
     * @param id      textarea 控件ID
     * @param options the options
     * @return the rich box
     */
    public final static native RichBox initialize(String id, EditOption options)/*-{
		var t = $("#" + id).xheditor(options);
		return t;
	}-*/;

    /**
     * 初始化文本编辑器.
     *
     * @param e       the e
     * @param options the options
     * @return the rich box
     */
    public final static native RichBox initialize(Element e, EditOption options)/*-{
		var w=$wnd.$;
		var t = w(e).xheditor(options);
		return t;
	}-*/;

    /**
     * Un load.
     */
    public final native void unLoad()/*-{
		this.xheditor(false);
	}-*/;

    /**
     * Focus.
     */
    public final native void focus()/*-{
		this.focus();
	}-*/;

    /**
     * Html.
     *
     * @return the string
     */
    public final native String html()/*-{
		return this.getSource();
	}-*/;

    /**
     * Html.
     *
     * @param html the html
     */
    public final native void html(String html)/*-{
		this.setSource(html);
	}-*/;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy