Changeset 3811
- Timestamp:
- Sep 2, 2010, 9:21:14 AM (13 years ago)
- Location:
- trunk/client/servlet/src/org/proteios
- Files:
-
- 2 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/servlet/src/org/proteios/gui/form/FormFactory.java
r3810 r3811 2261 2261 2262 2262 2263 // Cleaning up from here2264 2265 2266 2267 2263 2268 2264 … … 2400 2396 } 2401 2397 2402 2403 public Form getProjectPluginForm(Project project) 2404 { 2405 Fieldset fs = new Fieldset(); 2406 fs.getLegendTitle().setTitle("ImportPlugins"); 2407 // id 2408 TextField<Integer> itemIdF = newHiddenItemIdField(); 2409 fs.add(itemIdF); 2410 // Select field 2411 Select<VInteger> typeS = new Select<VInteger>(VPLUGINDEFID); 2412 typeS.setLabel("Plugin"); 2413 if (project != null) 2414 { 2415 itemIdF.setValue(project.getId()); 2416 ItemQuery<PluginDefinition> query = PluginDefinition.getQuery(); 2417 query.include(Include.SHARED); 2418 for (PluginDefinition pd : query.list(project.getDbControl())) 2419 { 2420 if (pd.getMainType().equals(Plugin.MainType.OTHER)) 2421 { 2422 Option o = new Option(pd.getId(), pd.getName()); 2423 typeS.addOption(o); 2424 } 2425 } 2426 } 2427 fs.add(typeS); 2428 /*********************************************************************** 2429 * Form 2430 */ 2431 Form form = new Form("projectPluginsForm"); 2432 form.setTitle("Other plugins"); 2433 form.addFieldset(fs); 2434 return form; 2435 } 2436 2398 // Cleaning up from here 2437 2399 2438 2400 public Form getHitForm(HitInterface hit) -
trunk/client/servlet/src/org/proteios/gui/form/PluginSelect.java
r3806 r3811 78 78 } 79 79 80 public PluginSelect() 81 { 82 this(null); 83 } 80 84 } -
trunk/client/servlet/src/org/proteios/gui/form/SelectPluginForm.java
r3807 r3811 47 47 fs.add(typeS); 48 48 } 49 50 public SelectPluginForm() 51 { 52 super("pluginsForm"); 53 fs = new Fieldset(); 54 fs.getLegendTitle().setTitle("SelectPlugin"); 55 typeS = new PluginSelect(); 56 fs.add(typeS); 57 } 58 49 59 }
Note: See TracChangeset
for help on using the changeset viewer.