假设您有以下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;
// ...
}
那么您是否有需要/需要使用SafeHtml或SafeHtmlBuilder的用例,或者只是在使用HTML
对象及其底层DOM结构时才需要“Safe *”API?
如果存在UiBinder支持的复合材料需要使用Safe *的用例,也许一个简单的代码示例可以帮助我连接点。提前谢谢!