1. #1
    Ext User
    Join Date
    Apr 2009
    Posts
    33
    Vote Rating
    0
    brendand is on a distinguished road

      0  

    Default LinkButton

    LinkButton


    In asp.net, there is a control called a LinkButton. It looks like a link but behaves like a button. Is there a similar control is gxt, or a way to reproduce it.

    I'd like to have some code like this
    Code:
    		LinkButton logout = new LinkButton("Logout");
    		logout.addListener(Events.OnClick, new Listener<ComponentEvent>() {
    			@Override
    			public void handleEvent(ComponentEvent be) {
    ...
    			}
    		});
    I've tried with LabelField and Text, but I can seem to make either of them aware of when the user clicks on the link.

    My code so far is
    Code:
    Text logout = new Text("Logout");
    logout.setTagName("span");
    logout.setStyleAttribute("cursor","pointer");
    logout.addListener(Events.OnClick, new Listener<ComponentEvent>() {
    	public void handleEvent(ComponentEvent be) {
    		Info.display("click", "moo");
    	}
    });
    RootPanel.get().add(logout);

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    You need to sink the click event.

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