在GWT UI Binder类中读取属性文件

时间:2014-06-12 09:13:26

标签: gwt uibinder

我有一个网站,其中文本现在是硬编码的。 我希望现在从属性文件中选取文本。

<c:info>
                    <g:HTMLPanel ui:field="info">
                        <c:InfoItem>
                        We should only remarket every 3 years unless agreed with Placement team otherwise, as per &lt;a href="http://ke.aon.com.au/aon_risk_solutions/products_and_facilities/middle_market_business/what_is_new.asp#p3">Remarketing rules on the KE&lt;/a&gt;.&lt;br/&gt;
                        A minimum of 4 insurers should be selected when remarketing, up to a maximum of 7. &lt;br/&gt;
                        &lt;br/&gt;                 
                        Deselection reasons:&lt;br/&gt;
                        • Renewing with existing Vertex Insurer (this would be used for Vertex renewals and would be the default for non-holding Insurers)&lt;br/&gt;
                        • Agreement reached outside platform by Placement team (used where open market business is negotiated prior to placement on the platform)&lt;br/&gt;
                        </c:InfoItem>
                    </g:HTMLPanel>
                </c:info>

InfoItem是一个Ui Binder类。我希望从属性文件中读取此文本。

1 个答案:

答案 0 :(得分:1)

您可能对GWT I18包感兴趣。

详细了解GWT DevGuide UiBinder I18n详细解释的内容以及样本。

详细了解GWT DevGuide I18n Constants