Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #29924
| From | Magnus Warker <magnux@mailinator.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Setting styles in GWT |
| Date | 2014-09-08 00:46 +0200 |
| Organization | (posted via) M-net Telekommunikations GmbH |
| Message-ID | <luin8q$smf$1@news.m-online.net> (permalink) |
| References | <c54e7a98-fa3a-4956-a9e1-4aabccb49447@googlegroups.com> |
On 08/30/2014 12:58 PM, w.tom.adams@gmail.com wrote: > 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()). String c = lbl1.getElement ().getStyle ().getColor (); lbl2.getElement ().getStyle ().setColor (c); Magnus
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll 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