1. #1
    Ext User
    Join Date
    Sep 2009
    Posts
    8
    Vote Rating
    0
    rniamo is on a distinguished road

      0  

    Default i'm lost in layouts

    i'm lost in layouts


    hi, i'm trying to create a simple graphical interface with one menu, two side panel and one center big panel. I would like to make it resizable.

    Here is my code :

    Code:
    public ExtJSTest() {
            setLayout(new FitLayout());
            setHeight(Window.getClientHeight());
    
            add(all());
        }
    
        private ContentPanel all() {
            ContentPanel container = new ContentPanel();
            container.setLayout(new BorderLayout());
    
            ContentPanel center = new ContentPanel();
            center.setHeading("Rniamo's tests");
            center.setScrollMode(Scroll.AUTO);
            center.add(new DrawerPanel());
    
            BorderLayoutData northData = new BorderLayoutData(LayoutRegion.NORTH,75);
            northData.setCollapsible(false);
            northData.setFloatable(false);
            northData.setHideCollapseTool(true);
            northData.setSplit(false);
    
            BorderLayoutData westData = new BorderLayoutData(LayoutRegion.WEST, 150);
            westData.setSplit(true);
            westData.setCollapsible(true);
    
            BorderLayoutData eastData = new BorderLayoutData(LayoutRegion.EAST, 150);
            eastData.setSplit(true);
            eastData.setCollapsible(true);        
            
            BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER);
    
            container.add(createMulti(), northData);
            container.add(tree(), westData);
            container.add(center, centerData);
            container.add(new ContentPanel(), eastData);
            
            return container;
        }
    How to make it resizable simply.

    Thanks to any help.

  2. #2
    Ext User
    Join Date
    Sep 2009
    Posts
    8
    Vote Rating
    0
    rniamo is on a distinguished road

      0  

    Default


    it works with a viewport but it is slow

  3. #3
    Ext GWT Premium Member
    Join Date
    Mar 2009
    Posts
    226
    Vote Rating
    3
    The_Jackal is on a distinguished road

      0  

    Default


    Hi,

    I use border layout a lot in a viewport (and in a GXT window). It's not slow (except maybe in hosted mode, but then everything is slow!).

    If you want to post your a full example, I can take a look.

    You may want to consider using a ToolBar for the menu

    Regards,
    Carl

  4. #4
    Ext User
    Join Date
    Sep 2009
    Posts
    8
    Vote Rating
    0
    rniamo is on a distinguished road

      0  

    Default


    in fact after having retesting i think it was slow because i didn't compile it before running it, now it is normal.

Thread Participants: 1

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..."