Package org.jsmdr.configui.parser

Examples of org.jsmdr.configui.parser.ParserModel


   
  }
 
  public AddParserDialog(String parserName) {
    super("Add Parser");
    model = new ParserModel();
    model.setPaserName(parserName);
    init();
  }
View Full Code Here


  public void loadSettings(Element element) {   
    model.clear();
    NodeList parserList = element.getElementsByTagName("Parser");
    for (int i=0; i<parserList.getLength(); i++) {
      Element e = (Element)parserList.item(i);
      ParserModel pModel = new ParserModel();
      pModel.loadFromXML(e);
      model.addParsers(pModel);
    }
    view.refreshTable();
  }
View Full Code Here

   */
  public void saveSettings(Document document, Element element) {
    Element parsersElement = document.createElement("Parsers");
    element.appendChild(parsersElement);
    for (int i=0; i<model.size(); i++) {
      ParserModel pModel = model.get(i);
      Element parserElement = document.createElement("Parser");
      pModel.addXML(document, parserElement);
      parsersElement.appendChild(parserElement);
    }
  } 
View Full Code Here


  private void handleDuplicateParser() {
    if (view.getSelectedTableLine() == -1)
      return;
    ParserModel origModel = model.get(view.getSelectedTableLine());
    ParserModel dupModel = new ParserModel(origModel);
    dupModel.setPaserName("Copy Of " + dupModel.getPaserName());
    model.addParsers(dupModel);
    view.refreshTable();
  }
View Full Code Here

TOP

Related Classes of org.jsmdr.configui.parser.ParserModel

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.