假设您有以下内容MyPanel.ui.xml
:
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:gwt="urn:import:com.google.gwt.user.client.ui">
<div>
<span id="content">Some content</span>
<gwt:RadioButton ...>
...
</gwt:RadioButton>
<!-- etc. -->
</div>
</ui:UiBinder>
这“映射”到MyPanel.java
:
public class MyPanel extends Composite {
private RadioButton radioButton;
// ...
}
HTML
那么是否存在您想要/需要使用 SafeHtml 或 SafeHtmlBuilder 的用例,或者仅在使用对象及其底层 DOM 结构时才需要“Safe*”API ?
如果存在 UiBinder 支持的复合材料需要使用 Safe* 的用例,也许一个简单的代码示例可以帮助我连接这些点。提前致谢!