1 32 33 package websphinx.workbench; 34 35 import websphinx.*; 36 import java.awt.*; 37 import rcm.awt.Constrain; 38 39 public class SimpleCrawlerEditor extends CrawlerEditor { 40 41 Label actionLabel; 42 ActionEditor actionEditor; 43 44 public SimpleCrawlerEditor () { 45 super (); 46 47 remove (typeLabel); 49 remove (typeChoice); 50 remove (depthLabel); 51 remove (depthField); 52 remove (depthLabel2); 53 remove (searchOrderChoice); 54 55 actionLabel = new Label("Action:"); 57 actionEditor = new ActionEditor (); 58 Constrain.add (this, actionLabel, 59 Constrain.labelLike (0, 4)); 60 Constrain.add (this, actionEditor, 61 Constrain.areaLike (1, 4, 4)); 62 } 63 64 public void setCrawler (Crawler crawler) { 65 super.setCrawler (crawler); 66 actionEditor.setAction (crawler.getAction()); 67 } 68 69 public Crawler getCrawler () { 70 crawler.setAction (actionEditor.getAction ()); 71 return super.getCrawler (); 72 } 73 74 } 75 | Popular Tags |