Changeset 3890


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

Adding help for StoreCompressedCheckbox? aswell as title to NewFile? action.

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  
    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.file;
    2929
    3030import org.proteios.action.ProteiosAction;
    3131import org.proteios.core.DbControl;
     32import org.proteios.gui.Title;
    3233import org.proteios.gui.Toolbar;
    3334import org.proteios.gui.form.Form;
     
    3839
    3940/**
    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*/
     43public class NewFile extends ProteiosAction<NewFile>
    4644{
    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    }
    6265}
  • trunk/client/servlet/src/org/proteios/gui/form/StoreCompressedCheckbox.java

    r3802 r3890  
    4040  setLabel("StoredInCompressedFormat");
    4141  setValue("true");
     42  setHelp("Compress the file transparently, don't use if file is already compressed.");
    4243  isChecked(false);
    4344 }
Note: See TracChangeset for help on using the changeset viewer.