Changeset 3889


Ignore:
Timestamp:
Oct 16, 2010, 11:02:53 AM (13 years ago)
Author:
Gregory Vincic
Message:

Added title in action NewDirectory?, also added some missing dictionary words.

Location:
trunk/client/servlet/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/servlet/src/locale/en/dictionary

    r3815 r3889  
    542542OnlyThis=Only this
    543543OrderBy=Order By
     544Organisation=Organisation
    544545Original=Original
    545546OriginalQuantityInMicroLiters=Original Quantity (µl)
     
    579580Permissions=Permissions
    580581Personal=Personal
     582Phone=Phone
    581583PiEnd=High pI
    582584piEnd=High pI boundary
  • trunk/client/servlet/src/org/proteios/action/directory/NewDirectory.java

    r2823 r3889  
    11/*
    2  $Id$
    3 
    4  Copyright (C) 2006, 2007 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  */
     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*/
    2828package org.proteios.action.directory;
    2929
    3030import org.proteios.action.ProteiosAction;
    3131import org.proteios.core.Directory;
     32import org.proteios.gui.Title;
    3233import org.proteios.gui.Toolbar;
    3334import org.proteios.gui.form.Form;
    3435import org.proteios.gui.layout.RowLayout;
    35 
    3636import se.lu.thep.waf.ActionException;
    3737import se.lu.thep.waf.constraints.InvalidParameterValue;
    3838
    3939/**
    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*/
    4544public class NewDirectory
    46     extends ProteiosAction<NewDirectory>
     45extends ProteiosAction<NewDirectory>
    4746{
    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    }
    6266}
Note: See TracChangeset for help on using the changeset viewer.