}
}
};
});
((HasMouseDownHandlers)display.getDragWidget()).addMouseDownHandler(new MouseDownHandler(){
public void onMouseDown(MouseDownEvent event) {
onDragMouseDown(event);
}
});
((HasMouseMoveHandlers)display.getDragWidget()).addMouseMoveHandler(new MouseMoveHandler(){
public void onMouseMove(MouseMoveEvent event) {
onDragMouseMove(event);
}
});
((HasMouseUpHandlers)display.getDragWidget()).addMouseUpHandler(new MouseUpHandler(){
public void onMouseUp(MouseUpEvent event) {
onDragMouseUp(event);
}
});
((HasMouseDownHandlers)display.getScaleWidget()).addMouseDownHandler(new MouseDownHandler() {
public void onMouseDown(MouseDownEvent event) {
onScaleMouseDown(event);
}
});
((HasMouseDownHandlers)display.getRootWidget()).addMouseDownHandler(new MouseDownHandler() {
public void onMouseDown(MouseDownEvent event) {
onRootMouseDown(event);
}
});
((HasMouseOverHandlers)display.getRootWidget()).addMouseOverHandler(new MouseOverHandler() {
public void onMouseOver(MouseOverEvent event) {
onRootMouseOver(event);
}
});
((HasMouseOutHandlers)display.getRootWidget()).addMouseOutHandler(new MouseOutHandler() {
public void onMouseOut(MouseOutEvent event) {
onRootMouseOut(event);
}
});
ArrayList<Widget> lessWidgets = display.getLessWidgets();
if (lessWidgets != null) {
for (int i = 0; i < lessWidgets.size(); i++) {
((HasMouseDownHandlers) lessWidgets.get(i))
.addMouseDownHandler(new MouseDownHandler() {
public void onMouseDown(MouseDownEvent event) {
onLessMouseDown(event);
}
});
}
}
ArrayList<Widget> moreWidgets = display.getMoreWidgets();
if (moreWidgets != null) {
for (int i = 0; i < moreWidgets.size(); i++) {
((HasMouseDownHandlers) moreWidgets.get(i))
.addMouseDownHandler(new MouseDownHandler() {
public void onMouseDown(MouseDownEvent event) {
onMoreMouseDown(event);
}
});
}