Changeset 3803


Ignore:
Timestamp:
Aug 31, 2010, 11:25:42 AM (13 years ago)
Author:
Gregory Vincic
Message:

Refs #698. Removed getFileTypeForm from FormFactory.

Location:
trunk/client/servlet/src/org/proteios
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/servlet/src/org/proteios/action/file/SetFileTypeExtension.java

    r3461 r3803  
    3434import org.proteios.gui.Title;
    3535import org.proteios.gui.Toolbar;
    36 import org.proteios.gui.form.Form;
    37 import org.proteios.gui.form.FormFactory;
     36import org.proteios.gui.form.*;
    3837import org.proteios.gui.layout.RowLayout;
    3938
     
    9897    Integer firstFileId = fileIds.get(0);
    9998    File file = factory.getById(File.class, firstFileId);
    100     Form form = getFormFactory().getFileTypeForm(dc, file);
     99    Form form = new FileTypeForm(new FileTypeSelect(dc, file));
    101100    /***********************************************************************
    102101     * Toolbar
  • trunk/client/servlet/src/org/proteios/gui/form/FormFactory.java

    r3802 r3803  
    11171117
    11181118 // Cleaning up from here
    1119 
    1120   public Form getFileTypeForm(DbControl dc, File file)
    1121   {
    1122     log.debug("file = " + file);
    1123     Fieldset fs = new Fieldset();
    1124     fs.getLegendTitle().setTitle("FileType");
    1125     // id
    1126     TextField<Integer> itemIdF = newHiddenItemIdField();
    1127     fs.add(itemIdF);
    1128     // File type selector
    1129     Select<VInteger> fileTypeS = new FileTypeSelect(dc,file);
    1130     fs.add(fileTypeS);
    1131     /***********************************************************************
    1132      * Form
    1133      */
    1134     Form form = new Form("fileTypeForm");
    1135     form.setTitle("SelectFileType");
    1136     form.addFieldset(fs);
    1137     return form;
    1138   }
    1139 
    11401119
    11411120  public Form getMimeTypeForm(DbControl dc, File file)
Note: See TracChangeset for help on using the changeset viewer.