我有一个AbsolutePanel放置小部件的。现在当鼠标滚轮时刻发生时,我想一个一个地向前移动元素。那么如何计算 x,y,z 位置并将元素放置在 AbsolutePanel 的中心。  
2 回答
            0        
        
		
尝试将JavaScript 3D 轮播移植到 GWT。
于 2013-03-09T05:56:36.770   回答
    
    
            0        
        
		
使用焦点面板。
   A simple panel that makes its contents focusable, 
    and adds the ability to catch mouse and keyboard events. 
无需实现或创建实现处理程序的新类(面板,我在上一个问题中看到:))。
只需将您的孩子添加到focuspanel.
焦点面板实现了所有mouse keyword events
FocusPanel panel = new FocusPanel(child);//Child 将是您的面板或小部件。
这是一个很好的Roughian 示例。
于 2013-03-09T09:38:55.613   回答