我正在尝试向按钮添加工具提示。工具提示很好。但是我只能在构造函数中使用我的 java 代码更新工具提示的标题,而不能在其他方法中使用。有什么问题?
<b:Tooltip title="..." placement="BOTTOM" ui:field="sharedWith">
<b:Button text="Share"
type="PRIMARY" ui:field="share" icon="USER_PLUS">
</b:Button>
</b:Tooltip>
Java代码:
sharedWith.setTitle(members.size() + " " + member);
sharedWith 是工具提示的 ui:field。
最佳答案
假设这里使用 gwtbootstrap3,每当您更改 Tooltip
的属性时,您都需要调用 reconfigure()
。
关于java - 无法更新 GWT ui Binder 中的工具提示标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32432103/