Package org.openqreg.element

Examples of org.openqreg.element.StandardVariable


  // private void getAllVariableElements(Connection con,
  // Map<String, Collection<VarattributeBean>> attributeMap,
  // Collection<VarBean> col) {
  private void getAllVariableElements(Connection con, Collection<VarBean> col) {

    StandardVariable variable;
    for (VarBean varBean : col) {
      // Populate (make an instance) of the element
      variable = (StandardVariable) instanciateElement(varBean);
      // Set the row name
      // variable.setParentId(varBean.getParentid());
      variable.setDataId(((VarvarBean) varBean).getDataid());
      // Set the help text ID, and description ID
      variable.setHelpTextID(variable.getId() + "_H");
      variable.setDescriptionID(variable.getId() + "_D");

      // set scripts, intervals, services, attributes
      populateDynamics(con, variable);
      // Populate with attributes
      // populateAttributes(attributeMap, variable, variable.getId());
View Full Code Here


      try {
        //using autoid to get right one for this container
        Collection<VarvarBean> varBeanCol = VarvarFinder.findByParentautoid(con, container.getAutoId());
        for(VarvarBean varBean : varBeanCol) {
          // Populate (make an instance) of the element
          StandardVariable variable = (StandardVariable) instanciateElement(varBean);
          // Set the row name
          // variable.setParentId(varBean.getParentid());
          variable.setDataId(varBean.getDataid());
          // Set the help text ID, and description ID
          //TODO: read text based on what
          variable.setHelpTextID(variable.getId() + "_H");
          variable.setDescriptionID(variable.getId() + "_D");

          // set scripts, intervals, services, attributes
          populateDynamics(con, variable);
          //todo: add variable to container..... sdflkasjf
          container.setElementOnPosition(variable, variable.getOrderNo());
         
        }
      } catch (SQLException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
View Full Code Here

TOP

Related Classes of org.openqreg.element.StandardVariable

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.