/*
 * Copyright 2012 Corpuslinguistic working group Humboldt University Berlin.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package annis.gui.widgets.gwt.client;

import com.google.gwt.dom.client.*;
import com.google.gwt.user.client.ui.Widget;
import com.vaadin.terminal.gwt.client.ApplicationConnection;
import com.vaadin.terminal.gwt.client.Paintable;
import com.vaadin.terminal.gwt.client.UIDL;

/**
 *
 * @author Benjamin Weißenfels <b.pixeldrama@gmail.com>
 */
public class VJITWrapper extends Widget implements Paintable
{
  
  //dummy wrapper
  public VJITWrapper()
  {
    super();
    
  }

  @Override
  public void updateFromUIDL(UIDL uidl, ApplicationConnection client)
  {
    throw new UnsupportedOperationException("Not supported yet.");
  }
}

@@ -1041,18 +1041,259 @@
 table%0A%7B%0A
+%0A
   
+private Document doc = Document.get();%0A  /**%0A   * The infovis has to be injected to an html element, so we create an an%0A   * unique element identifier from this count value.%0A   */%0A  private static int count = 0;%0A  private String elementID;%0A
 %0A  //dum
@@ -1326,24 +1326,25 @@
 apper()%0A  %7B%0A
+%0A
     super();
@@ -1344,20 +1344,136 @@
 uper();%0A
+%0A
     
+// build the html id%0A    elementID = %22jit_wrapper_%22 + count;%0A    %0A    // count the JITWrapper objects%0A    count++;%0A
 %0A  %7D%0A%0A  

build an id for every jitwrapper object