/*
 * 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;

import annis.gui.widgets.gwt.client.VJITWrapper;
import com.vaadin.terminal.PaintException;
import com.vaadin.terminal.PaintTarget;
import com.vaadin.ui.AbstractComponent;
import com.vaadin.ui.ClientWidget;

/**
 *
 * @author Benjamin Weißenfels <b.pixeldrama@gmail.com>
 */
@ClientWidget(VJITWrapper.class)
public class JITWrapper extends AbstractComponent
{

  public JITWrapper()
  {
    super();
  }

  @Override
  public void paint(PaintTarget target) throws PaintException
  {
    super.paint(target);
  }
}

@@ -1025,16 +1025,331 @@
 nent%0A%7B%0A%0A
+  String testJSON = %22%7B%22%0A    + %22id: 'node1',%22%0A    + %22name: 'node1',%22%0A    + %22data: %7B%7D,%22%0A    + %22children: %5B%7B%22%0A    + %22id: 'node2',%22%0A    + %22name: 'node2',%22%0A    + %22data: %7B%7D,%22%0A    + %22children:%5B%5D%22%0A    + %22%7D,%7B%22%0A    + %22id: 'node3',%22%0A    + %22name: 'node3',%22%0A    + %22data: %7B%7D,%22%0A    + %22children:%5B%5D%22%0A    + %22%7D%22%0A    + %22%5D%22%0A    + %22%7D%22;%0A%0A
   public
@@ -1415,16 +1415,23 @@
 id paint
+Content
 (PaintTa
@@ -1442,16 +1442,20 @@
  target)
+%0A   
  throws 
@@ -1492,20 +1492,75 @@
 aint
-(target
+Content(target);%0A%0A    target.addAttribute(%22testJSON%22, testJSON
 );%0A  %7D%0A%7D
 %0A
@@ -1558,9 +1558,8 @@
 );%0A  %7D%0A%7D
-%0A

build test json test string