+ TextBox path = new TextBox();\r
+ path.addFocusListener(new FocusListener() {\r
+ public void onFocus(Widget sender) {\r
+ ((TextBox) sender).selectAll();\r
+ }\r
+ public void onLostFocus(Widget sender) {\r
+ ((TextBox) sender).setSelectionRange(0, 0);\r
+ }\r
+ });\r
+ path.setText(file.getPath());\r
+ path.setTitle("Use this URI for sharing this file with the world");\r
+ path.setReadOnly(true);\r
+ pathPanel.add(new Label("Sharing URI:"));\r
+ pathPanel.setSpacing(8);\r
+ pathPanel.addStyleName("gwt-TabPanelBottom");\r
+ pathPanel.add(path);\r
+ pathPanel.setVisible(false);\r
+ permPanel.add(pathPanel);\r
+\r