在GWT中的AbsolutePanel上旋转元素

时间:2013-03-08 11:48:37

标签: gwt 3d offset

我有一个放置小部件的AbsolutePanel。现在当鼠标滚轮时刻发生时,我想逐个向前移动元素。那么如何计算x,y,z位置并将元素放在AbsolutePanel的中心。

2 个答案:

答案 0 :(得分:0)

尝试将JavaScript 3D carousel移植到GET。

答案 1 :(得分:0)

使用FocusPanel

   A simple panel that makes its contents focusable, 
    and adds the ability to catch mouse and keyboard events. 

无需实现或创建实现处理程序的新类(面板,我在上一个问题中看到:))。

只需将您的孩子添加到focuspanel

Focus Panel实现了所有mouse keyword events

FocusPanel面板= new FocusPanel(child); // Child将成为您的面板或小部件。

这是一个不错的Roughian example