You can do it in at least 4 different ways in GWT.  Say you define a
label as Label first = new Label("First Label") and add it to the DOM,
then you can do one of the following to hide it:

a) first.setVisible(false);
b) first.getElement().getStyle().setVisibility(Visibility.HIDDEN);
c) first.getElement().getStyle().setProperty("display", "hidden");
d) first.addStyleName("hidden-style");  (assuming you have hidden-
style defined in your style sheet and that sets the display property
to hidden)

//Adam

On 18 Okt, 09:07, bhomass <bhom...@gmail.com> wrote:
> I found there is a way to change css rules using javascript.
>
> http://twelvestone.com/forum_thread/view/31411.
>
> is there a way to do this using gwt?
--~--~---------~--~----~------------~-------~--~----~
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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to