toolBarPanel.setAutoHideEnabled(false);
DOM.setStyleAttribute(toolBarPanel.getElement(), "zIndex", Integer.toString(1));
resizePanel.add(resizeImage);
resizePanel.setAutoHideEnabled(false);
DOM.setStyleAttribute(resizePanel.getElement(), "zIndex", Integer.toString(1));
moveImage.addMouseDownHandler(new MouseDownHandler() {
@Override
public void onMouseDown(MouseDownEvent event) {
VkStateHelper.getInstance().getMenu().prepareMenu((IVkWidget) popUpAssociateWidget);
if(popUpAssociateWidget instanceof TextBoxBase)
((TextBoxBase)popUpAssociateWidget).setFocus(false);
if(event.getNativeButton() == NativeEvent.BUTTON_LEFT && ((IVkWidget)popUpAssociateWidget).isMovable() && popUpAssociateWidget.getParent() instanceof AbsolutePanel) {
VkStateHelper.getInstance().getMoveHelper().makeMovable((IVkWidget) popUpAssociateWidget);
event.preventDefault();
event.stopPropagation();
}
}});
resizeImage.addMouseDownHandler(new MouseDownHandler(){
@Override
public void onMouseDown(MouseDownEvent event) {
VkStateHelper.getInstance().getMenu().prepareMenu((IVkWidget) popUpAssociateWidget);
if (event.getNativeButton() == NativeEvent.BUTTON_LEFT && ((IVkWidget)popUpAssociateWidget).isResizable()) {
VkStateHelper.getInstance().getResizeHelper().resize(popUpAssociateWidget);