protected void attachScrollingEvents(ComponentConnector connector) {
Widget widget = connector.getWidget();
if(widget instanceof LazyScrollNotifier) {
LazyScrollNotifier not = (LazyScrollNotifier) widget;
scrollingElement = not.getLazyScrollingElement();
not.addLazyScrollListener(this);
} else if (widget instanceof VWindow) {
final VWindow window = (VWindow)widget;
scrollingElement = window.contentPanel.getElement();
handlerRegistration = ((VWindow)widget).contentPanel.addScrollHandler(new ScrollHandler() {
@Override
public void onScroll(ScrollEvent event) {
onLazyScroll(window.contentPanel.getElement());
}
});
} else {
LOGGER.severe("Failed to connect to scrolling events of " + connector.getClass().getName());
}
}
LazyVerticalLayoutConnector.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:LazyLayouts
作者:
评论列表
文章目录