\r
/**\r
* The 'File properties' dialog box implementation.\r
- */\r
-/**\r
+ *\r
* @author past\r
*/\r
public class FilePropertiesDialog extends DialogBox {\r
\r
private final CheckBox versioned = new CheckBox();\r
final FileResource file;\r
+\r
/**\r
* The widget's constructor.\r
*\r
* @param images the dialog's ImageBundle\r
- * @param permissions\r
* @param groups\r
* @param bodies\r
*/\r
permButtons.setSpacing(8);\r
permButtons.addStyleName("gwt-TabPanelBottom");\r
\r
+ final Label readForAllNote = new Label("By checking this option, the file will be readable" +\r
+ " by everyone. You are responsible for ensuring that by doing so you do not " +\r
+ "violate laws and statutes.", true);\r
+ readForAllNote.setVisible(false);\r
+ readForAllNote.setStylePrimaryName("gss-readForAllNote");\r
+\r
readForAll = new CheckBox();\r
readForAll.setChecked(file.isReadForAll());\r
+ readForAll.addClickListener(new ClickListener() {\r
+\r
+ public void onClick(Widget sender) {\r
+ if (readForAll.isChecked())\r
+ readForAllNote.setVisible(true);\r
+ else\r
+ readForAllNote.setVisible(false);\r
+ }\r
+\r
+ });\r
permForAll.add(new Label("Read For All:"));\r
permForAll.add(readForAll);\r
permForAll.setSpacing(8);\r
permPanel.add(permList);\r
permPanel.add(permButtons);\r
permPanel.add(permForAll);\r
+ permPanel.add(readForAllNote);\r
\r
VersionsList verList = new VersionsList(this, images, bodies);\r
verPanel.add(verList);\r