Threaded View

  1. #31
    Sencha Premium Member
    Join Date
    Oct 2009
    Location
    Germany
    Posts
    298
    Vote Rating
    62
    Ekambos is a jewel in the rough Ekambos is a jewel in the rough Ekambos is a jewel in the rough Ekambos is a jewel in the rough

      0  

    Default


    Hello there,
    I m really glad Gwt4Air could help you .
    Hopefully you guys are also going to like the next features

    With the version 2 coming out in few days, i receive a lot of emails asking me what "support for the flex framework" means. Well it simply means that i ll export the flex api to java(GWT), just like i did with the other apis.

    The idea of this project started with a discussion with a customer who had a team of java developers and wanted to write flex based AIR applications without going the AS3 way. They asked me if it s possible the export flex to java. The first time i said i dont think so
    The problem with flex is that the mxml compiler generates a lot of code under the hood. And even if you take a look at the generated code you can not learn much from it because it es really cripted
    So i had to find a way to manually load flex. I wont explain how i did it here since the project will be open source anyway , but after the release one will be able to do something like this(I m stiill working on the API though) :

    Code:
    ExampleButton testButton = new ExampleButton("Adobe Flex Test");
    testButton.addSelectionListener(new SelectionListener<ButtonEvent>() {
      @Override
    	public void componentSelected(ButtonEvent ce) {
    	FlexFrameworkWrapper.get().initFlex(FlexSkin.HALO, true, new FlexInitiaLizationHandler() {
    		@Override
    		 protected void onInitialization() {
    		Button b2 = Button.newInstance();
    		b2.setLabel("I m an sparkButton");
    		b2.setX(10);
    		b2.setY(10);
    		b2.setHeight(40);
    		Runtime.trace(b2);
    		Panel panel = Panel.newInstance();
    		panel.setTitle("Gwt4Air 4 Air Rocks");
    		com.ekambi.gwt.air.flex.client.mx.controls.Button b = com.ekambi.gwt.air.flex.client.mx.controls.Button.newInstance();
    		b.setLabel("I m a mxButton");
    		b.setX(10);
    		b.setY(60);
    		b.setHeight(40);
                    
                    DateChooser dc = DateChooser.newInstance();
    		dc.setX(148);
    		dc.setY(10);
    		panel.addElement(b2.asIVisualElement());
    		panel.addElement(b.asIVisualElement());
    		panel.addElement(dc.asIVisualElement());
    		
                     FlexFrameworkWrapper.get().addChild(panel);
    		 FileSystemDataGrid grid = FileSystemDataGrid.newInstance();
    		
                      grid.setX(500);
    		  grid.setY(10);
    		  FlexFrameworkWrapper.get().addChild(grid);
    						
    		com.ekambi.gwt.air.flex.client.mx.containers.Panel mxPanel = com.ekambi.gwt.air.flex.client.mx.containers.Panel.newInstance();
    		mxPanel.setTitle("FileSystemTree");
    		mxPanel.setX(10);
    		mxPanel.setY(350);
    		mxPanel.setWidth(455);
    		mxPanel.setHeight(200);
    						
    		FileSystemTree fileSystemTree = FileSystemTree.newInstance();
    		mxPanel.addElement(fileSystemTree.asIVisualElement());
    		
                    FlexFrameworkWrapper.get().addChild(mxPanel);
    		
    						});
    
    					}
    				});
    			}
    		});
    you can see the result here :
    [INLINE]24057[/INLINE]


    Like always feedbacks are very welcome.
    stay tuned

    Regards,

    Alain
    Attached Images

Similar Threads

  1. GXT 2.1 and Adobe Air
    By Ekambos in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 28 Jan 2010, 6:48 AM
  2. Gxt with Adobe AIR
    By murd in forum Ext GWT: Help & Discussion (1.x)
    Replies: 6
    Last Post: 28 Nov 2009, 7:02 PM
  3. adobe air
    By mdissel in forum Community Discussion
    Replies: 3
    Last Post: 5 Feb 2008, 11:44 AM
  4. ExtJS homepage... change "Adobe Apollo" to "Adobe AIR"
    By KimH in forum Community Discussion
    Replies: 1
    Last Post: 9 Jul 2007, 3:20 AM

Thread Participants: 7

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi