Changeset 3890
- Timestamp:
- Oct 16, 2010, 11:21:59 AM (13 years ago)
- Location:
- trunk/client/servlet/src/org/proteios
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/servlet/src/org/proteios/action/file/NewFile.java
r3802 r3890 1 1 /* 2 $Id$3 4 Copyright (C) 2006, 2007Gregory Vincic5 6 Files are copyright by their respective authors. The contributions to7 files where copyright is not explicitly stated can be traced with the8 source code revision system.9 10 This file is part of Proteios.11 Available at http://www.proteios.org/12 13 Proteios-2.x is free software; you can redistribute it and/or14 modify it under the terms of the GNU General Public License15 as published by the Free Software Foundation; either version 216 of the License, or (at your option) any later version.17 18 Proteios is distributed in the hope that it will be useful,19 but WITHOUT ANY WARRANTY; without even the implied warranty of20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the21 GNU General Public License for more details.22 23 You should have received a copy of the GNU General Public License24 along with this program; if not, write to the Free Software25 Foundation, Inc., 59 Temple Place - Suite 330,26 Boston, MA 02111-1307, USA.27 2 $Id$ 3 4 Copyright (C) 2006, 2007, 2010 Gregory Vincic 5 6 Files are copyright by their respective authors. The contributions to 7 files where copyright is not explicitly stated can be traced with the 8 source code revision system. 9 10 This file is part of Proteios. 11 Available at http://www.proteios.org/ 12 13 Proteios-2.x is free software; you can redistribute it and/or 14 modify it under the terms of the GNU General Public License 15 as published by the Free Software Foundation; either version 2 16 of the License, or (at your option) any later version. 17 18 Proteios is distributed in the hope that it will be useful, 19 but WITHOUT ANY WARRANTY; without even the implied warranty of 20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 GNU General Public License for more details. 22 23 You should have received a copy of the GNU General Public License 24 along with this program; if not, write to the Free Software 25 Foundation, Inc., 59 Temple Place - Suite 330, 26 Boston, MA 02111-1307, USA. 27 */ 28 28 package org.proteios.action.file; 29 29 30 30 import org.proteios.action.ProteiosAction; 31 31 import org.proteios.core.DbControl; 32 import org.proteios.gui.Title; 32 33 import org.proteios.gui.Toolbar; 33 34 import org.proteios.gui.form.Form; … … 38 39 39 40 /** 40 * Displays form to upload a new file. 41 * 42 * @author gregory 43 */ 44 public class NewFile 45 extends ProteiosAction<NewFile> 41 Displays form to upload a new file. 42 */ 43 public class NewFile extends ProteiosAction<NewFile> 46 44 { 47 @Override 48 public void runMe() 49 throws ActionException, InvalidParameterValue 50 { 51 DbControl dc = newDbControl(); 52 Form form = new NewFileForm(dc); 53 // Toolbar 54 Toolbar tb = new Toolbar(); 55 tb.add(getActionFactory().getActionLink(SaveFile.class, "Save")); 56 form.setToolbar(tb); 57 // Layout 58 RowLayout layout = getLayoutFactory().getRowLayout(); 59 layout.add(form); 60 setLayout(layout); 61 } 45 @Override 46 public void runMe() throws ActionException, InvalidParameterValue 47 { 48 DbControl dc; 49 Form form; 50 Toolbar tb; 51 RowLayout layout; 52 Title title; 53 54 dc = newDbControl(); // Used when creating form to get file types 55 tb = new Toolbar(); 56 tb.add(getActionFactory().getActionLink(SaveFile.class, "Save")); 57 form = new NewFileForm(dc); 58 form.setToolbar(tb); 59 title = new Title("UploadFile"); 60 layout = getLayoutFactory().getRowLayout(); 61 layout.add(title); 62 layout.add(form); 63 setLayout(layout); 64 } 62 65 } -
trunk/client/servlet/src/org/proteios/gui/form/StoreCompressedCheckbox.java
r3802 r3890 40 40 setLabel("StoredInCompressedFormat"); 41 41 setValue("true"); 42 setHelp("Compress the file transparently, don't use if file is already compressed."); 42 43 isChecked(false); 43 44 }
Note: See TracChangeset
for help on using the changeset viewer.