1. #1
    Ext User
    Join Date
    Apr 2009
    Posts
    18
    Vote Rating
    0
    urwitharup@yahoo.com is on a distinguished road

      0  

    Default Text Listening

    Text Listening


    Hello,

    Have a very simple question. I want to have a listener to a Text component like "forgot my password", then a new TextBox like email id will be made visible or some thing to be done. How to do that? A code snipet will be really helpful.

    Regards
    Arup

  2. #2
    Ext User
    Join Date
    Mar 2009
    Location
    Netherlands
    Posts
    69
    Vote Rating
    0
    Rvanlaak is on a distinguished road

      0  

    Default


    Use the Html class...

  3. #3
    Ext GWT Premium Member takayser's Avatar
    Join Date
    Oct 2008
    Location
    Lucerne, Switzerland
    Posts
    188
    Vote Rating
    0
    takayser is an unknown quantity at this point

      0  

    Default


    try something like this:
    Code:
    final Text forgotPwd = new Text("forgot password");
    forgotPwd.setTagName("span");
    forgotPwd.setStyleAttribute("cursor","pointer");
    forgotPwd.sinkEvents(Event.ONCLICK);
    forgotPwd.sinkEvents(Event.MOUSEEVENTS);
    forgotPwd.addListener(Events.OnClick, new Listener<BaseEvent>() {
        public void handleEvent(BaseEvent be) {
            // put your action here, e.g. textField.setVisible(true);
        }
    });
    forgotPwd.addListener(Events.OnMouseOver, new Listener<BaseEvent>() {
        public void handleEvent(BaseEvent be) {
           forgotPwd.setStyleAttribute("color", "blue");
        }
    });
      forgotPwd.addListener(Events.OnMouseOut, new Listener<BaseEvent>() {
        public void handleEvent(BaseEvent be) {
           forgotPwd.setStyleAttribute("color", "black");
        }
    });

  4. #4
    Ext User
    Join Date
    Apr 2009
    Posts
    18
    Vote Rating
    0
    urwitharup@yahoo.com is on a distinguished road

      0  

    Default


    Thanks it works

Thread Participants: 2

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