tags:

views:

159

answers:

2

I'm trying to set the style name of the div of the split between the two widgets of a HorizontalSplitPanel in order to CSS-style it. Is there any way to do this?

A: 

Figured a way out myself, though it is definitely a bit "hacky":

    Element split = (Element)hSplit.getElement().getChild( 0 ).getChild( 1 );
    split.setClassName( css.horizontalSplit() );

If anyone has a more elegant solution, I'd love to hear it.

Epaga
+1  A: 

According to the javadocs for HorizontalSplitPanel, you should change the .gwt-HorizontalSplitPanel .hsplitter { the splitter } style. Just make sure you set up your CSS styles to take precedence over the core GWT ones.

Igor Klimer