package com.itmill.dev.addressbooktutorial.ui; import com.itmill.toolkit.ui.Button; import com.itmill.toolkit.ui.CheckBox; import com.itmill.toolkit.ui.Label; import com.itmill.toolkit.ui.Window; public class SharingOptions extends Window { public SharingOptions() { /* * Make the window modal, which will disable all other components while * it is visible */ setModal(true); /* Make the sub window 50% the size of the browser window */ setWidth("50%"); /* * Center the window both horizontally and vertically in the browser * window */ center(); setCaption("Sharing options"); addComponent(new Label( "With these setting you can modify contact sharing " + "options. (non-functional, example of modal dialog)")); addComponent(new CheckBox("Gmail")); addComponent(new CheckBox(".Mac")); Button close = new Button("OK"); addComponent(close); } }