1. #1
    Ext User
    Join Date
    Aug 2008
    Posts
    6
    Vote Rating
    0
    johker is on a distinguished road

      0  

    Default OnDoubleClick for ListView

    OnDoubleClick for ListView


    Hi guys,

    I am currently using GXT 1_2_3.

    I would like to be able to handle the DoubleClck on the items of my ListView.

    I could see that the seelctionModel does not manage the Event.
    So, I decided to create my own Listener and add it directly to the ListView instanciated object.
    Here is the code :
    public class OneSample extends Dialog implements Listener<ListViewEvent> {
    .....
    view.addListener(Events.OnDoubleClick, this) ;

    public void handleEvent(ListViewEvent ce) {

    System.out.println("SaveDialogBox.ContainerEvent"+ ce.model.get("name")) ;
    Info.display("ObDoubleClick","On double click handled.") ;

    switch (ce.type) {
    case Events.OnDoubleClick:
    break;
    }
    }

    I can handle the Event but, I can't get an item associated with the DoubleClick.

    Is there somebody with experience on this ready to help?

    Thanks in advance

    johann

  2. #2
    Ext User
    Join Date
    Aug 2008
    Posts
    6
    Vote Rating
    0
    johker is on a distinguished road

      0  

    Default Solution

    Solution


    Guys,

    I found a solution to achieve this.

    I don't know if it is clever but can't find an other way.
    I am picking up the selectdItem like this:
    view1.getSelectionModel().getSelectedItems().get(0)

    If somebody has a better, the hint is welcome.

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