Opening,closing and Positioning SubWindows in Vaadin Applications
Vaadin allows applications to have subwindows.Positioning SubWindows is very important when it comes to design.Other tasks that can be performed on subwindows are like closing,opening and resizing.
Today am going to introduce some of the functions that can be used to perform these tasks.
Below is the Whole Application code.
Opening and Closing a Sub-Window
A new Window can be create by using new Window(“Sub Window”) method.This method takes a string that names the window.
Subwindow is added to the main window by addWindow( name of the subwindow) method.This takes the new window created.
Subwindows can be removed by removeWindow() method.
Subwindows can be positioned anywhere on the screen.This is done by setPositionX( int) and setPositionY( int) methods.These methods takes integers.
Size of the subwindow can be set by setWidth(int) and setHeight(int) methods which takes integers.