Package org.sgx.yuigwt.yuitest1.gallery.test.uibinder

Examples of org.sgx.yuigwt.yuitest1.gallery.test.uibinder.UIBinderTest2Composite


//    nodeEventDelegationTest1();
//    animTest1();
  }

  private void doGallery() {
    new Gallery().draw();
  }
View Full Code Here


    Map<String, String> urlParams = Util.parseUrlParams(Util.getCurrentAddressUrl());
    if(urlParams.containsKey("singleTest") && urlParams.containsKey("test")) {
      new GallerySingleTest(urlParams.get("test")).draw(); ;
    }
    else {
      new Gallery().draw();
    }
  }
View Full Code Here

  public void yuiBinded() {
    final String testName = getTestName();
    if(testName==null)
      return;
   
    final GalleryUtil galleryUtil = GalleryUtil.getDefaultInstance();
    final Test test = galleryUtil.getTestByName(testName);
   
     //new GalleryUtil(null);
   
    final Button button1 = getYUIBinder().getWidget(buttonEl).cast();
    final Button acceptButton = getYUIBinder().getWidget(acceptButtonEl).cast();
    final Panel panel1 = getYUIBinder().getWidget(panel1El).cast();
   
    button1.on("click", new EventCallback<EventFacade>() {
      @Override
      public void call(EventFacade e) {
        //cannot work directly in panel1.getStdModNode("body") because we cannot call asHTMLPanel() if the node is already inside a GWT Widget.
//        test.test(panel1.getStdModNode("body"));  
        Node p = y.one("body").appendChild("<div></div>");
//        p.generateID();
        test.test(p);  
       
        panel1.setStdModContent("body", p);
//        panel1.render();
        panel1.show();
      }
    });
    acceptButton.on("click", new EventCallback<EventFacade>() {
      @Override
      public void call(EventFacade e) {
        panel1.hide();
      }
    });
    
   
   
    Node parent = y.one(tabviewEl);//getElement()).appendChild("");
   
    final List<String> headers = new LinkedList<String>();
    final List<String> bodies = new LinkedList<String>();
   
    for(final String resName : test.getTestResources().keySet()) {
      ResourcePrototype res = test.getTestResources().get(resName);
      galleryUtil.getText(res, new ResourceCallback<TextResource>() {
       
        @Override
        public void onSuccess(TextResource resource) {
          String scapedContent = y.Escape().html(resource.getText().replace("\t", "  "));
          String header = resName;
View Full Code Here

    tests.add(new DataTableTest1());
    tests.add(new TabViewTest1());
    tests.add(new ConfigObjectsTest1());
    tests.add(new EventSimulateTest1());
    tests.add(new PJaxTest1());
    tests.add(new AnimTest1());
    tests.add(new ConsoleTest1());
    tests.add(new StyleSheetTest1());
    tests.add(new SubstituteTest1());
    tests.add(new CacheTest1());
    tests.add(new CookieTest1());
View Full Code Here

    tests.add(new SubstituteTest1());
    tests.add(new CacheTest1());
    tests.add(new CookieTest1());
    tests.add(new ImageLoaderTest1());
    tests.add(new CalendarTest1());
    tests.add(new AutoCompleteTest1());
    tests.add(new DataSchemaArrayTest1());
    tests.add(new DataTypeTest1());
    tests.add(new AyncQueueTest1());
    tests.add(new IOTest1());
    tests.add(new CollectionTest1());
View Full Code Here

    tests.add(new ImageLoaderTest1());
    tests.add(new CalendarTest1());
    tests.add(new AutoCompleteTest1());
    tests.add(new DataSchemaArrayTest1());
    tests.add(new DataTypeTest1());
    tests.add(new AyncQueueTest1());
    tests.add(new IOTest1());
    tests.add(new CollectionTest1());
    tests.add(new TransitionTest1());
    tests.add(new EditorBaseTest1());
    tests.add(new HistoryTest1());
View Full Code Here

    this.g = g;
    tests = new HashSet<Test>();

    // YUI modules

    tests.add(new ButtonTest1());
    tests.add(new YUIUtilTest1());
    tests.add(new MenuNavTest1());
    tests.add(new EventDelegateTest1());
    tests.add(new SliderTest1());
    tests.add(new PanelTest1());
View Full Code Here

    tests.add(new PJaxTest1());
    tests.add(new AnimTest1());
    tests.add(new ConsoleTest1());
    tests.add(new StyleSheetTest1());
    tests.add(new SubstituteTest1());
    tests.add(new CacheTest1());
    tests.add(new CookieTest1());
    tests.add(new ImageLoaderTest1());
    tests.add(new CalendarTest1());
    tests.add(new AutoCompleteTest1());
    tests.add(new DataSchemaArrayTest1());
View Full Code Here

    tests.add(new StyleSheetTest1());
    tests.add(new SubstituteTest1());
    tests.add(new CacheTest1());
    tests.add(new CookieTest1());
    tests.add(new ImageLoaderTest1());
    tests.add(new CalendarTest1());
    tests.add(new AutoCompleteTest1());
    tests.add(new DataSchemaArrayTest1());
    tests.add(new DataTypeTest1());
    tests.add(new AyncQueueTest1());
    tests.add(new IOTest1());
View Full Code Here

    tests.add(new IOTest1());
    tests.add(new CollectionTest1());
    tests.add(new TransitionTest1());
    tests.add(new EditorBaseTest1());
    tests.add(new HistoryTest1());
    tests.add(new ChartsTest1());
    tests.add(new ChartsTest2());
    tests.add(new NodeFocusManagerTest1());
    tests.add(new ScrollViewTest());
    tests.add(new ScrollViewTest2());
    tests.add(new NodeLoadTest1());
View Full Code Here

TOP

Related Classes of org.sgx.yuigwt.yuitest1.gallery.test.uibinder.UIBinderTest2Composite

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.