Changeset 3807
- Timestamp:
- Sep 1, 2010, 11:41:46 AM (13 years ago)
- Location:
- trunk/client/servlet/src/org/proteios
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/servlet/src/org/proteios/action/directory/TestExtensionForDirectories.java
r2895 r3807 2 2 $Id$ 3 3 4 Copyright (C) 2006 Gregory Vincic4 Copyright (C) 2006 20010 Gregory Vincic 5 5 6 6 This file is part of Proteios. … … 36 36 import org.proteios.gui.form.Fieldset; 37 37 import org.proteios.gui.form.Form; 38 import org.proteios.gui.form.SelectPluginForm; 38 39 import org.proteios.gui.form.FormFactory; 39 40 import org.proteios.gui.form.TextField; … … 50 51 * an analysis plugin to run on selected directories. 51 52 * 52 * @author olle 53 * @author olle gregory 53 54 */ 54 55 public class TestExtensionForDirectories … … 79 80 */ 80 81 DbControl dc = newDbControl(); 81 Form impForm = getFormFactory().getSelectPluginForm(dc,Plugin.MainType.ANALYZE);82 Fieldset fieldSet = new Fieldset();82 SelectPluginForm impForm = new SelectPluginForm(dc,Plugin.MainType.ANALYZE); 83 Fieldset fieldSet = impForm.fs; 83 84 /* 84 85 * First add the selected directory id's as hidden fields. If you don't -
trunk/client/servlet/src/org/proteios/action/file/AnalyzeFilesForm.java
r2381 r3807 33 33 import org.proteios.gui.form.Fieldset; 34 34 import org.proteios.gui.form.Form; 35 import org.proteios.gui.form.SelectPluginForm; 35 36 import org.proteios.gui.form.FormFactory; 36 37 import org.proteios.gui.form.TextField; … … 75 76 */ 76 77 DbControl dc = newDbControl(); 77 Form impForm = getFormFactory().getSelectPluginForm(dc,Plugin.MainType.ANALYZE);78 Fieldset fieldSet = new Fieldset();78 SelectPluginForm impForm = new SelectPluginForm(dc, Plugin.MainType.ANALYZE); 79 Fieldset fieldSet = impForm.fs; 79 80 /* 80 81 * First add the selected file id's as hidden fields. If you don't … … 89 90 fieldSet.add(field); 90 91 } 91 impForm.addFieldset(fieldSet);92 92 /* 93 93 * Add the toolbar with one button labeled 'Next' to the form. -
trunk/client/servlet/src/org/proteios/action/file/ConvertFilesForm.java
r2381 r3807 32 32 import org.proteios.gui.form.Fieldset; 33 33 import org.proteios.gui.form.Form; 34 import org.proteios.gui.form.SelectPluginForm; 34 35 import org.proteios.gui.form.FormFactory; 35 36 import org.proteios.gui.form.TextField; … … 74 75 */ 75 76 DbControl dc = newDbControl(); 76 Form impForm = getFormFactory().getSelectPluginForm(dc, 77 Plugin.MainType.CONVERT); 78 Fieldset fieldSet = new Fieldset(); 77 SelectPluginForm impForm = new SelectPluginForm(dc, Plugin.MainType.CONVERT); 78 Fieldset fieldSet = impForm.fs; 79 79 /* 80 80 * First add the selected file id's as hidden fields. If you don't … … 89 89 fieldSet.add(field); 90 90 } 91 impForm.addFieldset(fieldSet);92 91 /* 93 92 * Add the toolbar with one button labeled 'Next' to the form. -
trunk/client/servlet/src/org/proteios/action/file/ImportFilesForm.java
r3694 r3807 32 32 import org.proteios.gui.form.Fieldset; 33 33 import org.proteios.gui.form.Form; 34 import org.proteios.gui.form.SelectPluginForm; 34 35 import org.proteios.gui.form.FormFactory; 35 36 import org.proteios.gui.form.TextField; … … 74 75 */ 75 76 DbControl dc = newDbControl(); 76 Form impForm = getFormFactory().getSelectPluginForm(dc, 77 Plugin.MainType.IMPORT); 78 Fieldset fieldSet = new Fieldset(); 77 SelectPluginForm impForm = new SelectPluginForm(dc, Plugin.MainType.IMPORT); 78 Fieldset fieldSet = impForm.fs; 79 79 /* 80 80 * First add the selected file id's as hidden fields. If you don't … … 89 89 fieldSet.add(field); 90 90 } 91 impForm.addFieldset(fieldSet);92 91 /* 93 92 * Add the toolbar with one button labeled 'Next' to the form. -
trunk/client/servlet/src/org/proteios/gui/form/FormFactory.java
r3806 r3807 1117 1117 1118 1118 // Cleaning up from here 1119 1120 public Form getSelectPluginForm(DbControl dc, Plugin.MainType... types)1121 {1122 Fieldset fs = new Fieldset();1123 fs.getLegendTitle().setTitle("SelectPlugin");1124 if (dc != null)1125 {1126 Select<VInteger> typeS = new PluginSelect(dc, types);1127 fs.add(typeS);1128 }1129 /***********************************************************************1130 * Form1131 */1132 Form form = new Form("importPluginsForm");1133 form.setTitle("Plugins");1134 form.addFieldset(fs);1135 return form;1136 }1137 1119 1138 1120 -
trunk/client/servlet/src/org/proteios/gui/form/ImportFileForm.java
r3806 r3807 39 39 public final ItemIdField itemIdF; 40 40 public final PluginSelect typeS; 41 // Define42 41 43 42 /** … … 46 45 public ImportFileForm(File file) 47 46 { 47 super("importPluginsForm"); 48 48 itemIdF = new ItemIdField(); 49 49 itemIdF.setHidden(true);
Note: See TracChangeset
for help on using the changeset viewer.