0

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?

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
Epaga
  • 38,231
  • 58
  • 157
  • 245

2 Answers2

1

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.

Community
  • 1
  • 1
Igor Klimer
  • 15,321
  • 3
  • 47
  • 57
0

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
  • 38,231
  • 58
  • 157
  • 245