Package com.flaptor.wizard

Examples of com.flaptor.wizard.TextPageElement


                ));
        File seedsFile = new File(crawlerDir, "pagedb.seeds");
        String seeds = "http://www.flaptor.com\nhttp://www.cnn.com";
         try {seeds = IOUtil.readAll(new FileReader(seedsFile));} catch (IOException e) {}//should exist
        pageSeedsManual
          .add(new TextPageElement("Enter seed URLs", "one per line","seeds", seeds));
        pageSeedsFile
          .add(new InputPageElement("Enter pagedb.seeds file", "pagedb.seeds is a file containing a URL per line","seeds", seedsFile.getAbsolutePath()));
       
        hotspotsType
      .add(new OptionPageElement(
        "Enter hotspots regular expressions",
            "Hotspots determine the documents that will be considered by the crawler. They are defined by regular expressions.",
            "hotspotsType",
            "0",
            new String[] {"Use a hotspots.regex file", "Enter hotspots regular expressions manually"}
            ));
      File hotspotsRegexFile = new File(crawlerDir, "conf/hotspots.regex");
      String hotspots = "*";
         try {hotspots = IOUtil.readAll(new FileReader(hotspotsRegexFile)); } catch (IOException e) {}//should exist
         hotspotsManual
        .add(new TextPageElement("Enter hotspots regex", "one per line","hotspots", hotspots));
         hotspotsFile
        .add(new InputPageElement("Enter hotspots.regex file", "hotspots.regex is a file containing a regular expression per line","hotspots", hotspotsRegexFile.getAbsolutePath()));
       
        configuring
          .add(new PageElement("Configuring..."));
View Full Code Here

TOP

Related Classes of com.flaptor.wizard.TextPageElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.