fix lazy loading excpetions
[pithos] / src / gr / ebs / gss / client / FilesPropertiesDialog.java
index 7c27d33..3437245 100644 (file)
@@ -39,6 +39,7 @@ import com.google.gwt.json.client.JSONString;
 import com.google.gwt.user.client.Command;\r
 import com.google.gwt.user.client.DeferredCommand;\r
 import com.google.gwt.user.client.ui.Button;\r
+import com.google.gwt.user.client.ui.DecoratedTabPanel;\r
 import com.google.gwt.user.client.ui.DisclosurePanel;\r
 import com.google.gwt.user.client.ui.FlexTable;\r
 import com.google.gwt.user.client.ui.FlowPanel;\r
@@ -46,7 +47,6 @@ import com.google.gwt.user.client.ui.FocusPanel;
 import com.google.gwt.user.client.ui.HasHorizontalAlignment;\r
 import com.google.gwt.user.client.ui.HorizontalPanel;\r
 import com.google.gwt.user.client.ui.Label;\r
-import com.google.gwt.user.client.ui.TabPanel;\r
 import com.google.gwt.user.client.ui.VerticalPanel;\r
 \r
 /**\r
@@ -88,7 +88,8 @@ public class FilesPropertiesDialog extends AbstractPropertiesDialog {
                final VerticalPanel outer = new VerticalPanel();\r
                final FocusPanel focusPanel = new FocusPanel(outer);\r
                // Inner contains generalPanel and permPanel.\r
-               inner = new TabPanel();\r
+               inner = new DecoratedTabPanel();\r
+               inner.setAnimationEnabled(true);\r
                final VerticalPanel generalPanel = new VerticalPanel();\r
                final HorizontalPanel buttons = new HorizontalPanel();\r
                final VerticalPanel verPanel = new VerticalPanel();\r
@@ -174,13 +175,14 @@ public class FilesPropertiesDialog extends AbstractPropertiesDialog {
                buttons.add(cancel);\r
                buttons.setCellHorizontalAlignment(cancel, HasHorizontalAlignment.ALIGN_CENTER);\r
                buttons.setSpacing(8);\r
-               buttons.addStyleName("gwt-TabPanelBottom");\r
+               buttons.addStyleName("gss-TabPanelBottom");\r
 \r
                generalPanel.add(generalTable);\r
 \r
                // Asynchronously retrieve the tags defined by this user.\r
                DeferredCommand.addCommand(new Command() {\r
 \r
+                       @Override\r
                        public void execute() {\r
                                updateTags();\r
                        }\r
@@ -195,7 +197,7 @@ public class FilesPropertiesDialog extends AbstractPropertiesDialog {
 \r
                vPanel.setCellHorizontalAlignment(cancel, HasHorizontalAlignment.ALIGN_CENTER);\r
                vPanel.setSpacing(8);\r
-               vPanel.addStyleName("gwt-TabPanelBottom");\r
+               vPanel.addStyleName("gss-TabPanelBottom");\r
                vPanel.add(new Label("Versioned"));\r
 \r
                vPanel.add(versionedCheck);\r
@@ -203,7 +205,7 @@ public class FilesPropertiesDialog extends AbstractPropertiesDialog {
                outer.add(inner);\r
                outer.add(buttons);\r
                outer.setCellHorizontalAlignment(buttons, HasHorizontalAlignment.ALIGN_CENTER);\r
-               outer.addStyleName("gwt-TabPanelBottom");\r
+               outer.addStyleName("gss-TabPanelBottom");\r
 \r
                focusPanel.setFocus(true);\r
                setWidget(outer);\r