title: How can I pass an anonymous JavaScript object from Java to JavaScript in GWT?
body: <p>I'm creating a GWT wrapper round a JavaScript library.  One of the JavaScript functions takes an anonymous object as its argument e.g.:</p>
  
  <pre><code>obj.buildTabs({ hide: true, placeholder: 'placeholder' });
  </code></pre>
  
  <p>On the Java side how do I create this type of JavaScript object and pass it to my native implementation?</p>
  
  <p>At the moment, on the Java side I have:</p>
  
  <pre><code>public void buildTabs(TabConfiguration config) {
     // ?
  }
  
  private native void buildTabs(?) /*-{
          $wnd.NAMESPACE.lib.buildTabs(?);
  }-*/;
  </code></pre>
  
  <p>Any pointers appreciated, thanks.</p>