1. #1
    Ext User
    Join Date
    Apr 2008
    Posts
    9
    Vote Rating
    0
    PeteW is on a distinguished road

      0  

    Default [FIXED] iconStyle for a TabItem cannot be changed

    [FIXED] iconStyle for a TabItem cannot be changed


    using 1.0 beta 2

    Once an iconStyle for a TabItem has been set, it cannot be changed, as demonstrated with the following example.

    Code:
    import com.extjs.gxt.ui.client.event.ComponentEvent;
    import com.extjs.gxt.ui.client.event.SelectionListener;
    import com.extjs.gxt.ui.client.widget.Button;
    import com.extjs.gxt.ui.client.widget.TabItem;
    import com.extjs.gxt.ui.client.widget.TabPanel;
    import com.extjs.gxt.ui.client.widget.Viewport;
    import com.extjs.gxt.ui.client.widget.layout.FillLayout;
    import com.google.gwt.core.client.EntryPoint;
    import com.google.gwt.user.client.ui.RootPanel;
    
    public class SimpleExample implements EntryPoint {
    
    
        public void onModuleLoad() {
            Viewport viewport = new Viewport();
            viewport.setLayout(new FillLayout());
    
            final TabPanel tabPanel = new TabPanel();
    
            final TabItem tab1 = new TabItem();
    
            Button button = new Button("Pushing Me Should Change Icon");
            button.addSelectionListener(new SelectionListener<ComponentEvent>() {
                public void componentSelected(ComponentEvent ce) {
                    tab1.setIconStyle("x-tbar-page-last");
                    tab1.setText("Tab 1 - button pushed");
                }
            });
            tab1.add(button);
    
            tab1.setText("Tab 1");
            tab1.setIconStyle("x-tbar-page-first");
    
            tabPanel.add(tab1);
    
            viewport.add(tabPanel);
    
            viewport.layout();
            RootPanel.get("slot1").add(viewport);
    
        }
    }

  2. #2
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    Thanks for the code sample. The fix in SVN.

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..." hd porno faketaxi