Changeset 3889
- Timestamp:
- Oct 16, 2010, 11:02:53 AM (13 years ago)
- Location:
- trunk/client/servlet/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/servlet/src/locale/en/dictionary
r3815 r3889 542 542 OnlyThis=Only this 543 543 OrderBy=Order By 544 Organisation=Organisation 544 545 Original=Original 545 546 OriginalQuantityInMicroLiters=Original Quantity (µl) … … 579 580 Permissions=Permissions 580 581 Personal=Personal 582 Phone=Phone 581 583 PiEnd=High pI 582 584 piEnd=High pI boundary -
trunk/client/servlet/src/org/proteios/action/directory/NewDirectory.java
r2823 r3889 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.directory; 29 29 30 30 import org.proteios.action.ProteiosAction; 31 31 import org.proteios.core.Directory; 32 import org.proteios.gui.Title; 32 33 import org.proteios.gui.Toolbar; 33 34 import org.proteios.gui.form.Form; 34 35 import org.proteios.gui.layout.RowLayout; 35 36 36 import se.lu.thep.waf.ActionException; 37 37 import se.lu.thep.waf.constraints.InvalidParameterValue; 38 38 39 39 /** 40 * Displays the form for creating new Directories. 41 * 42 * @author gregory 43 * @see AddDirectory 44 */ 40 Displays the form for creating one new directories. 41 42 @see AddDirectory 43 */ 45 44 public class NewDirectory 46 45 extends ProteiosAction<NewDirectory> 47 46 { 48 @Override 49 public void runMe() 50 throws ActionException, InvalidParameterValue 51 { 52 RowLayout layout = getLayoutFactory().getRowLayout(); 53 Form form = getFormFactory().getForm(Directory.class, null); 54 // Toolbar 55 Toolbar tb = new Toolbar(); 56 tb.add(getActionFactory().getActionLink(AddDirectory.class, "Save")); 57 form.setToolbar(tb); 58 // Layout 59 layout.add(form); 60 setLayout(layout); 61 } 47 @Override 48 public void runMe() 49 throws ActionException, InvalidParameterValue 50 { 51 Title title; 52 RowLayout layout; 53 Form form; 54 Toolbar tb; 55 56 title = new Title("NewDirectory"); 57 tb = new Toolbar(); 58 tb.add(getActionFactory().getActionLink(AddDirectory.class, "Save")); 59 form = getFormFactory().getForm(Directory.class, null); 60 form.setToolbar(tb); 61 layout = getLayoutFactory().getRowLayout(); 62 layout.add(title); 63 layout.add(form); 64 setLayout(layout); 65 } 62 66 }
Note: See TracChangeset
for help on using the changeset viewer.