Commits

Alireza Savand  committed 24f925b

SharingOptions added ;)

  • Participants
  • Parent commits 610a0f4

Comments (0)

Files changed (1)

File src/com/example/advanceaddressbook/ui/SharingOptions.java

+package com.example.advanceaddressbook.ui;
+
+import com.vaadin.ui.Button;
+import com.vaadin.ui.CheckBox;
+import com.vaadin.ui.Label;
+import com.vaadin.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);
+	}
+}