Yeah, thanks alex ^^ I thought about what you said: I had the same idea to put something like "dont_handled_token". But with something like firebug it's no problem to change the link (even it is absurd) and then JS- errors occurs... I haveno idea to use Hyperlinks without calling onHistoryChanged.
2008/11/27 alex.d <[EMAIL PROTECTED]> > > Nice button style, Danny. However if you don't want to handle the > onHistoryChanged-Event - well just don't: set the hyperlink's token to > something like "dont_handle_this_token" and don't handle it ;-) But > the button-hyperlink idea is somehow cleaner. > > On 27 Nov., 16:10, "Danny Schimke" <[EMAIL PROTECTED]> wrote: > > You are right: it calls the onHistoryChanged- Event. Thats why we created > a > > new button-Widger which extends from Button with only one difference: it > has > > a different link style by default (looks like a link). Then you don't > call > > onHistoryChanged- method. On Button- Click you can add or remove an style > > name which changes the color of your link-button to gray (look disabled). > > > > CSS for your link-button should look something like this: > > .button-link { > > cursor: pointer; > > cursor: hand; > > border: none; > > /* Disable the button-style */ > > background-color: transparent; > > padding: 0px; > > color: #4784C3; > > text-decoration: underline; > > > > } > > > > 2008/11/27 Litty Preeth <[EMAIL PROTECTED]> > > > > > But even if you remove the clickListener, it will cause an > onHistroryChange > > > event right? > > > > > On Thu, Nov 27, 2008 at 1:08 PM, Danny Schimke < > [EMAIL PROTECTED]>wrote: > > > > >> Should'nt setVisible() do this for HyperLinks too? > > > > >> setVisible needs an element and boolean: > > > > >> myHyperLink.setVisible(myHyperLink.getElement(), false); > > > > >> otherwise do what alex.d says: > > > > >> add and remove a style name which do this. > > >> CSS: visibility: hidden; > > > > >> 2008/11/27 alex.d <[EMAIL PROTECTED]> > > > > >>> If you wanna it look disabled - change CSS style. If you wanna your > > >>> clickListener not being executed - just remove it(use a single > > >>> listener method - not an anonymous inner class). > > > > >>> On 26 Nov., 17:03, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > > >>> wrote: > > >>> > It's a little hacky, but we just substitute a label in it's place. > > > > >>> > On Nov 26, 7:55 am, "Litty Preeth" <[EMAIL PROTECTED]> wrote: > > > > >>> > > Hi, > > > > >>> > > Anybody knows how we can disable a HyperLink in GWT? > > > > >>> > > Regards, > > >>> > > Litty Preeth > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---