1. #1
    Sencha Premium Member
    Join Date
    Oct 2009
    Vote Rating
    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


    Default GXT client side file generation + Integration with Adobe Flex

    GXT client side file generation + Integration with Adobe Flex

    Hello community,
    sometimes ago i started the project located at http://code.google.com/p/gwt4air/
    wich goal was tu bring Java and AIR together so one can easely export his GWT(GXT) application to the desktop without rewriting any code. On top of that the project added support for PDF and Excel generation. Now with gwt4air 2.1 coming out soon I m glad to announce a way to add client side file generation on your GWT (GXT) apps(note that Flash Player version 9 or above is required).

    I create a GWT widget wich you can include into your GXT application and interact with to access the file generation libraries inside gwt4air. The API will be something like this.
    ContentPanel cp = new ContentPanel();
    cp.add(Exporter.get(100, 100, new ExporterInitializationHandler() {
      public void onInitialization() {
        Exporter.getExportButton().setLabel("Export PDF");
       Exporter.addClickHandler(new FlashEventListener<Event>() {
    		protected void onFlashEvent(Event event) {
    		  PDF pdf =PDF.newInstance();
    	         pdf.writeText(15, "Export  Preview");
                       FileReference fr = FileReference.newInstance();
    	           fr.save(pdf.save(), "GXT.PDF");

    If you even want to combine your GWXT project with the Adobe FLEX framework, you know that this is not straigthforward.
    Now leaveraging a simpe java API you will be able to bring GXT and Flex together
    Flex.init(new FlexInitializationHandler() {
        public void onInitialization() {
            Application.get().setStyle("backgroundColor", "#268CE1");
    	Panel panel = Panel.newInstance("EXT-GWT and Adobe FLEX");
    	IFrame iframe = Frame.newInstance("http://www.sencha.com/examples/#overview");
             ControlBar controlBar = ControlBar.newInstance();

    I hope you guyz will like this.


    Attached Images

Similar Threads

  1. Load file and edit it on client side
    By GXTDebutant in forum Ext GWT: Discussion
    Replies: 4
    Last Post: 17 Nov 2010, 6:01 AM
  2. any tutorial with extjs and adobe flex air
    By chesterx in forum Ext.air for Adobe AIR
    Replies: 0
    Last Post: 5 Jul 2009, 3:35 AM
  3. Replies: 2
    Last Post: 30 May 2008, 4:30 AM
  4. load javascript file dynamically from client side
    By topcoder1 in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 13 Aug 2007, 11:33 AM
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