1. #1
    Ext User
    Join Date
    Feb 2010
    Location
    Austria
    Posts
    1
    Vote Rating
    0
    Herb-K is on a distinguished road

      0  

    Default Why in TabItem no content is displayed (Change HideMode)?

    Why in TabItem no content is displayed (Change HideMode)?


    Why in TabItem3 no content is displayed? (GWT 220)

    In TabItem2 i change the parameters of HideMode.
    In this panel i want do display a Java applet.
    I tested, hideMode setting is needed otherwise the applet w’be reloaded when switching between tabs.

    Herb

    PHP Code:
    import com.extjs.gxt.ui.client.Style.HideMode;
    import com.extjs.gxt.ui.client.Style.LayoutRegion;
    import com.extjs.gxt.ui.client.widget.TabItem;
    import com.extjs.gxt.ui.client.widget.TabPanel;
    import com.extjs.gxt.ui.client.widget.Text;
    import com.extjs.gxt.ui.client.widget.Viewport;
    import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
    import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;
    import com.google.gwt.core.client.EntryPoint;
    import com.google.gwt.user.client.ui.RootPanel;

    public class 
    Test implements EntryPoint {

        @
    Override
        
    public void onModuleLoad() {

            
    Viewport viewport = new Viewport();
            
    viewport.setLayout(new BorderLayout());
            
    TabPanel tabs = new TabPanel();
            
    BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER);
            
    viewport.add(tabscenterData);
            
    RootPanel.get().add(viewport);
            
    viewport.layout();

            
    TabItem tab1 = new TabItem();
            
    tab1.setText("Tab1");
            
    tab1.add(new Text("Tab 1, some text ..."));
            
    tabs.add(tab1);

            
    TabItem tab2 = new TabItem();
            
    tab2.setText("Tab2");
            
    tab2.setHideMode(HideMode.VISIBILITY);
            
    tab2.add(new Text("Tab 2, some text ... HideMode.VISIBILITY!"));
            
    tabs.add(tab2);

            
    TabItem tab3 = new TabItem();
            
    tab3.setText("Tab3");
            
    tab3.add(new Text("Tab 3, some text ..."));
            
    tabs.add(tab3);

        }



  2. #2
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    HideMode.VISIBILITY cannot be used inside a TabPanel. You will need to use either HideMode.DISPLAY or HideMode.OFFSET.

  3. #3
    Ext User
    Join Date
    Jan 2010
    Posts
    5
    Vote Rating
    0
    ccie11021 is on a distinguished road

      0  

    Default Visibility mode not supported inside a tabitem

    Visibility mode not supported inside a tabitem


    I am having the same problem - I am trying to display a java applet inside a tabpanel item (Using EXTGWT). Visibility mode fixes an issue where my applet reloads every time i switch tabs, but it breaks the other tabs' content.

    Offset mode works in Chrome, but not in FireFox (I experience the applet reload issue).

    Any ideas?

    Thanks

Similar Threads

  1. How to make change in one TabItem Data to reflect in other TabItem.
    By nst in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 13 Aug 2009, 9:22 AM
  2. [CLOSED] OFCGXT not displayed after closing TabItem
    By ikhwani in forum Ext GWT: Bugs (1.x)
    Replies: 4
    Last Post: 7 Jan 2009, 2:10 AM

Thread Participants: 2

Tags for this Thread