1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    22
    Vote Rating
    0
    hrishirise is on a distinguished road

      0  

    Default TextButton Event Handling how do i do it? What are the ways

    TextButton Event Handling how do i do it? What are the ways


    Hi,
    I have old 2.5 code which i am migrating to 3.0. I would like to fire an event on TextButton click.
    This is what i am trying. i am getting error "fireEvent" not defined . Probably because i dont extend Widget class. But, what are the other cleaner options to fire events on Text Button fr 3.0

    TextButton button1 = new TextButton ("abc");
    button1.addSelectHandler(new SelectHandler() {
    @Override
    public void onSelect(SelectEvent event) {
    fireEvent(new ABCControlEvent(ABCControlOperation.RESTART));
    }
    });

  2. #2
    Sencha User PhiLho's Avatar
    Join Date
    Nov 2011
    Location
    Near Paris, France
    Posts
    139
    Vote Rating
    1
    PhiLho is on a distinguished road

      0  

    Default


    If I am not mistaken, you need a class in your application defining its event bus:
    Code:
    public static EventBus EVENT_BUS = GWT.create(SimpleEventBus.class);
    Then you fire your event using this event bus:
    Code:
    App.EVENT_BUS.fireEvent( ... );

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