// Path: redquerybuilder-js/src/main/java/com/redspr/redquerybuilder/js/client/conf/JsFrom.java
// public class JsFrom extends JavaScriptObject {
//     protected JsFrom() {
//     }
// 
//     public final native boolean isVisible() /*-{ return this.visible; }-*/;
// }


import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.core.client.JsArrayMixed;
import com.redspr.redquerybuilder.core.client.table.TableFilter;
import com.redspr.redquerybuilder.core.client.util.ObjectArray;
import com.redspr.redquerybuilder.js.client.conf.JsFrom;
package com.redspr.redquerybuilder.js.client;


/**
 * Root of JS configuration tree.
 */
public class JsConfiguration extends JavaScriptObject {
    protected JsConfiguration() {
    }

    public final native String getTargetId2() /*-{ return this.targetId; }-*/;

    public final String getTargetId() {
        String id = getTargetId2();
        if (id == null) {
            return "rqb";
        }
        return id;
    }

    public final native JsDatabase getMeta() /*-{ return this.meta; }-*/;

    public final native JsArray<JsEditor> getEditors() /*-{
        return this.editors;
    }-*/;

    public final native JavaScriptObject getOnSuggest() /*-{
        return this.suggest
    }-*/;

    public final void fireOnTableChange(ObjectArray<TableFilter> filters) {
        JsArray<JsTableFilter> result = (JsArray<JsTableFilter>) JavaScriptObject.createArray();
        for (int i = 0; i < filters.size(); i++) {
// Path: redquerybuilder-js/src/main/java/com/redspr/redquerybuilder/js/client/conf/JsFrom.java
// public class JsFrom extends JavaScriptObject {
//     protected JsFrom() {
//     }
// 
//     public final native boolean isVisible() /*-{ return this.visible; }-*/;
// }


// Path: redquerybuilder-js/src/main/java/com/redspr/redquerybuilder/js/client/JsConfiguration.java
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.core.client.JsArrayMixed;
import com.redspr.redquerybuilder.core.client.table.TableFilter;
import com.redspr.redquerybuilder.core.client.util.ObjectArray;
import com.redspr.redquerybuilder.js.client.conf.JsFrom;

package com.redspr.redquerybuilder.js.client;


/**
 * Root of JS configuration tree.
 */
public class JsConfiguration extends JavaScriptObject {
    protected JsConfiguration() {
    }

    public final native String getTargetId2() /*-{ return this.targetId; }-*/;

    public final String getTargetId() {
        String id = getTargetId2();
        if (id == null) {
            return "rqb";
        }
        return id;
    }

    public final native JsDatabase getMeta() /*-{ return this.meta; }-*/;

    public final native JsArray<JsEditor> getEditors() /*-{
        return this.editors;
    }-*/;

    public final native JavaScriptObject getOnSuggest() /*-{
        return this.suggest
    }-*/;

    public final void fireOnTableChange(ObjectArray<TableFilter> filters) {
        JsArray<JsTableFilter> result = (JsArray<JsTableFilter>) JavaScriptObject.createArray();
        for (int i = 0; i < filters.size(); i++) {
            TableFilter tf = filters.get(i);