Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #29873

Setting styles in GWT

Newsgroups comp.lang.java.programmer
Date 2014-08-30 03:58 -0700
Message-ID <c54e7a98-fa3a-4956-a9e1-4aabccb49447@googlegroups.com> (permalink)
Subject Setting styles in GWT
From w.tom.adams@gmail.com

Show all headers | View raw


I am converting some code from awt to gwt.

It's easier to set the color of a Label in awt.

Looks like I need to use addStyleName to modify the color.  I think that means
the label ends up with a primary and secondary style.

Suppose I have one Label and I want to set another Label to have the same color.
This was easy in awt, I just do L2.setForeground(L1.getForeground()).

But in GWT do I have to get all the styles, parse them, and figure
out the color style and add it to the other label?

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Setting styles in GWT w.tom.adams@gmail.com - 2014-08-30 03:58 -0700
  Re: Setting styles in GWT Magnus Warker <magnux@mailinator.com> - 2014-09-08 00:46 +0200

csiph-web