![](/img/trans.png)
[英]Is there any way for more than one Google Translate widget to be loaded on a page
[英]Is there any way to apply FocusPanel in GWT with more than one Child widget
我希望將鼠標懸停事件添加到包含多個子窗口小部件的面板中。 當我嘗試使用FocusPanel時,我被異常停止“SimplePanel只能包含一個子窗口小部件”。 有沒有其他方法我可以使用鼠標覆蓋具有多個子窗口小部件的面板上的事件? 例如,在以下代碼中
<g:FocusPanel ui:field="parent"><childwidget1/><childwidget2/><childwidget3/><g:FocusPanel>
我需要將鼠標懸停事件添加到父面板。 請幫忙!
在FocusPanel
和子窗口小部件之間添加子FlowPanel
(或根據布局需要布置多個窗口小部件的面板):
<g:FocusPanel ui:field="parent">
<g:FlowPanel>
<my:childwidget1/>
<my:childwidget2/>
<my:childwidget3/>
</g:FlowPanel>
</g:FocusPanel>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.