Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经使用 Ajax 行为在 Wicket 中实现了拖放效果。如果我将图像拖到树节点上,则可放置接受的位置在图像的中间。如何在光标上设置这个位置(事件)?谢谢你。
我也找到了。解决方案是:
DroppableAjaxBehavior b = new DroppableAjaxBehavior() { @Override public void onDrop(Component droppedComponent, AjaxRequestTarget target) { //do something to handle event } }; b.setTolerance(ToleranceEnum.POINTER);