Package org.openqreg.element

Examples of org.openqreg.element.SystemHolder


  /**
   * @return Returns the systemHolder.
   */
  public void populateSystemHolder() {
    LanguageHandler lang = LanguageHandler.getInstance();
    SystemHolder sh = new SystemHolder();
    DBVariableReader reader = new DBVariableReader(lang);
    reader.populateElements();
    // Map<String, Container> containers = reader.getContainers();
    // Container container;
    // for (Iterator<Element> i = containers.values().iterator();
    // i.hasNext();) {
    // container = (Container) i.next();
    // sh.addContainer(container, container.getId());
    // }
    sh.addContainers(reader.getContainers());
    systemHolder = sh;
    logger.log(Level.INFO, "Dispatcher: SystemHolder loaded..");
  }
View Full Code Here


    // inputAttributes changed to tempAttributes to enable running right js
    // initialisation on return
    Map<String, String> html = new TreeMap<String, String>();
    Map<String, String> js = new TreeMap<String, String>();
    SystemHolder sh = Dispatcher.getInstance().getSystemHolder();
    Container container = null;
    if (containerIds != null) {
      for (String containerId : containerIds) {
        container = sh.getContainer(containerId);
        html.put(containerId, container.getOutput(elemParam, OutputFormat.HTML));
        js.put(containerId, container.getOutput(elemParam,
            OutputFormat.JAVASCRIPT).replaceAll("inputAttributes", "tempAttributes"));
      }
    }
View Full Code Here

TOP

Related Classes of org.openqreg.element.SystemHolder

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.