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

  String testJSON = "{"
    + "\"id\": \"node1\","
    + "\"name\" : \"node1\","
    + "\"data\": {},"
    + "\"children\": [{"
      + "\"id\": \"node2\","
      + "\"name\": \"node2\","
      + "\"data\": {},"
      + "\"children\":[]"
    + "},{"
      + "\"id\": \"node3\","
      + "\"name\": \"node3\","
      + "\"data\": {},"
      + "\"children\":[]"
      + "}"
    + "]"
    + "}";

  public JITWrapper()
  {
    super();
  }

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

    target.addAttribute("testJSON", testJSON);
  }
}
@@ -1028,400 +1028,42 @@
 t%0A%7B%0A
-%0A
   
-String testJSON = %22%7B%22%0A    + %22%5C%22id%5C%22: %5C%22node1%5C%22,%22%0A    + %22%5C%22name%5C%22 : %5C%22node1%5C%22,%22%0A    + %22%5C%22data%5C%22: %7B%7D,%22%0A    + %22%5C%22children%5C%22: %5B%7B%22%0A      + %22%5C%22id%5C%22: %5C%22node2%5C%22,%22%0A      + %22%5C%22name%5C%22: %5C%22node2%5C%22,%22%0A      + %22%5C%22data%5C%22: %7B%7D,%22%0A      + %22%5C%22children%5C%22:%5B%5D%22%0A    + %22%7D,%7B%22%0A      + %22%5C%22id%5C%22: %5C%22node3%5C%22,%22%0A      + %22%5C%22name%5C%22: %5C%22node3%5C%22,%22%0A      + %22%5C%22data%5C%22: %7B%7D,%22%0A      + %22%5C%22children%5C%22:%5B%5D%22%0A      + %22%7D%22%0A    + %22%5D%22%0A    + %22%7D%22
+%0A  private String visData = null
 ;%0A%0A 
@@ -1103,16 +1103,21 @@
 r();%0A  %7D
+  %0A  
 %0A%0A  @Ove

remove test json