Rather than setting the primary name, you could create a new style that 
modifies the property, and add or remove that name.  I'm assuming below 
that cellTableKeyboardSelectedCell is for that purpose, so you could do 
widget.addStyleName("cellTableKeyboardSelectedCell").  If so, I'd make the 
rule .cellTable.cellTableKeyboardSelectedCell.

Even better would be to use a dependent style:

.cellTable.cellTable-keyboardSelectedCell {
    border:
}

and then in your Java code:

widget.addStyleDependentName("keyboardSelectedCell");

or, to remove it:

widget.removeStyleDependentName("keyboardSelectedCell");


On Thursday, February 7, 2013 9:50:55 AM UTC-5, membersound wrote:
>
> Hi,
>
> how can I change a specific css style property during runtime?
>
> I have a CellTable.Resource to define cellTable style MyCellTable.css.
> Now I want to change a specific css property during runtime.
>
> .cellTableKeyboardSelectedCell {
>     border:
> }
>
> How can I access my css file during runtime and change that specific 
> property?
>
> Probably it has to do with cellTable.setStylePrimaryName(), but I could 
> not figure out how I could achieve this.
>
> Thanks
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to