1. #1
    Sencha Premium Member
    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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar