I will use the code from the SmartGWT Showcase. The example is "Server Advanced Filter".
Here's the code (package com.smartgwt.sample.showcase.client.dataintegratio n.java.sql.ServerAdvancedFilteringSQLSample ):
All you have to do change the DS file:
<DataSource
ID="worldDS"
serverType="sql"
tableName="worldDS"
testFileName="/ds/test_data/world.data.xml"
>
<fields>
<field name="pk" type="sequence" hidden="true" primaryKey="true" />
<field name="countryCode" type="text" title="Code" required="true" />
<field name="countryName" type="text" title="Country" required="true" />
<field name="capital" type="text" title="Capital" />
<field name="government" type="text" title="Government" length="500" />
<field name="continent" type="text" title="Continent" >
<valueMap>
<value>Europe</value>
<value>Asia</value>
<value>North America</value>
<value>Australia/Oceania</value>
<value>South America</value>
<value>Africa</value>
</valueMap>
</field>
<field name="independence" type="date" title="Nationhood wwwwwwwwwwkkkkkkkkkkpppppppppprrrrrrrrr123" />
<field name="area" type="float" title="Area (km&sup2;)" />
<field name="population" type="integer" title="Population" />
<field name="gdp" type="float" title="GDP ($M) wwwwwwwwwwkkkkkkkkkkpppppppppprrrrrrrrr123" />
<field name="member_g8" type="boolean" title="G8" />
</fields>
</DataSource>
If you open the Showcase now and select long value in the select item - the value is cut off.
There is no tooltip for the select item and use have to click on the item to see the value.
I think the tooltip should be added to the FilterBuilder selects, as well it can be a great idea to add setShowClippedValueOnHover for these elements.
Here's the code (package com.smartgwt.sample.showcase.client.dataintegratio n.java.sql.ServerAdvancedFilteringSQLSample ):
Code:
DataSource dataSource = DataSource.get("worldDS");
final FilterBuilder advancedFilter = new FilterBuilder();
advancedFilter.setDataSource(dataSource);
...
VStack layout = new VStack(10);
layout.addMember(advancedFilter);
...
layout.draw();
}<DataSource
ID="worldDS"
serverType="sql"
tableName="worldDS"
testFileName="/ds/test_data/world.data.xml"
>
<fields>
<field name="pk" type="sequence" hidden="true" primaryKey="true" />
<field name="countryCode" type="text" title="Code" required="true" />
<field name="countryName" type="text" title="Country" required="true" />
<field name="capital" type="text" title="Capital" />
<field name="government" type="text" title="Government" length="500" />
<field name="continent" type="text" title="Continent" >
<valueMap>
<value>Europe</value>
<value>Asia</value>
<value>North America</value>
<value>Australia/Oceania</value>
<value>South America</value>
<value>Africa</value>
</valueMap>
</field>
<field name="independence" type="date" title="Nationhood wwwwwwwwwwkkkkkkkkkkpppppppppprrrrrrrrr123" />
<field name="area" type="float" title="Area (km&sup2;)" />
<field name="population" type="integer" title="Population" />
<field name="gdp" type="float" title="GDP ($M) wwwwwwwwwwkkkkkkkkkkpppppppppprrrrrrrrr123" />
<field name="member_g8" type="boolean" title="G8" />
</fields>
</DataSource>
If you open the Showcase now and select long value in the select item - the value is cut off.
There is no tooltip for the select item and use have to click on the item to see the value.
I think the tooltip should be added to the FilterBuilder selects, as well it can be a great idea to add setShowClippedValueOnHover for these elements.