1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    31
    Vote Rating
    0
    1chiban is on a distinguished road

      0  

    Default Show/hide() vs setActiveItem()

    Show/hide() vs setActiveItem()


    Hi guys, i have a question, is there any difference in performance when utilizing Show/hide() instead of setactiveitem(), when changing panels? Or is there any disadvantage using one of these rather than the other? Thanks in advance.

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,731
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    Assuming you are referring to CardLayout.setActiveItem, the main advantage is that it is easier to only have to call setActiveItem to specify what the new visible item is - you can disregard the old active item, and it will automatically hide it.

    If you are manually calling hide(), show(), then there may be no need for a CardLayout at all. Note that CardLayout is used to implement TabPanel, and can be a useful way to build related widgets, where a user decision in one place affects which widget is visible in another.

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