I create a button, when click the button, will prompt out a subwindow. In Vaddin api doc, set the window class is default Draggable is true.
However, the window could not be drag in my Vaddin UI, Event I set the subWindow.setDraggable(true);
Does anything know is it a bug? I am using IE8
@Override
public void buttonClick(Button.ClickEvent event) {
LinkedHashMap resultItem = (LinkedHashMap)event.getButton().getData();
BulkbookingSubWindow subWindow = new BulkbookingSubWindow(resultItem);
subWindow.setImmediate(true);
UI.getCurrent().addWindow(subWindow);
I read through your post and code example and I’m left with a couple of questions. You have a “BulkbookingSubWindow” class, which I can’t know how it’s constructed. Does it use some special modes? I used as much of the same code as you had there and I was not able to reproduce this. Could you make a minimal test case with just Vaadin components and post it either here or our issue tracker at http://dev.vaadin.com ? That would make it easier to first see the issue, and then fix it.
I’m having the same difficulty. Everything is working fine except that it is not draggable. I have this:
[b]
[font=courier new]
public class HelpWindow extends Window implements View {
public void setupWindow() {
VerticalLayout welcomeContainer = new VerticalLayout();
setContent(welcomeContainer);
}
@Override
public void enter(ViewChangeEvent event) {
// TODO Auto-generated method stub
}
}
[/font]
[/b]
Then I have this:
[b]
[font=courier new]
public void buttonClick(ClickEvent event) {
HelpWindow helpWindow = new HelpWindow();
// Add it to the root component
UI.getCurrent().addWindow(helpWindow);
helpWindow.setHeight("500px");
helpWindow.setWidth("500px");
helpWindow.setPosition(70,60);
helpWindow.setImmediate(true);
helpWindow.setDraggable(true);
}
[/font]
[/b]
Thee are some other lines of code in both of these files, but I am getting no build errors, and it all works fine except for setDraggable(true);.