I need to customize the style of the right side of a horizontal splitter panel. While GWT 1.7 offers support for individual panel styles, our project is currently on GWT 1.5.
Here is the GWT code snippet:
HTML div1 = new HTML("Div 1");
div1.setWidth("200px");
div1.setHeight("200px");
HTML div2 = new HTML("Div 2");
div2.setWidth("400px");
div2.setHeight("500px");
HorizontalSplitPanel horizontalSPanel = new HorizontalSplitPanel();
horizontalSPanel.setLeftWidget(div1);
horizontalSPanel.setRightWidget(div2);
RootPanel.get().add(horizontalSPanel);
The corresponding output:
<div class="gwt-HorizontalSplitPanel" style="position: relative; height: 100%;">
<div style="border: medium none ; margin: 0pt; padding: 0pt; position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px;">
<div style="border: medium none ; margin: 0pt; padding: 0pt; overflow: auto; position: absolute; top: 0px; bottom: 0px; width: 511px;">
<div class="gwt-HTML" style="width: 200px; height: 200px;">Div 1</div>
</div>
<div style="position: absolute; top: 0px; bottom: 0px; left: 511px;">
<table height="100%" cellspacing="0" cellpadding="0" class="hsplitter">
<tbody>
<tr><td valign="middle" align="center">
<img border="0" style="background: transparent url(http://localhost:8888/com.xyzpackage.MyEntryPoint/4BF90CCB5E6B04D22EF1776E8EBF09F8.cache.png) no-repeat scroll 0px 0px; width: 7px; height: 7px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" src="http://localhost:8888/com.xyzpackage.MyEntryPoint/clear.cache.gif"/>
</td></tr>
</tbody>
</table>
</div>
<div style="border: medium none ; margin: 0pt; padding: 0pt; overflow: auto; position: absolute; top: 0px; bottom: 0px; right: 0px; left: 518px;">
<div class="gwt-HTML" style="width: 400px; height: 500px;">Div 2</div>
</div>
</div>
</div>
Is there a way to apply a specific style only to the right-hand side (RHS) div?
My requirement mandates that the RHS view cannot have a vertical scrollbar.