Package it.eng.spago.base

Examples of it.eng.spago.base.SourceBeanAttribute


    StringBuffer htmlStream = new StringBuffer();

    Iterator iter = buttons.listIterator();
    while (iter.hasNext()) {
      SourceBeanAttribute buttonSBA = (SourceBeanAttribute)iter.next();
      SourceBean buttonSB = (SourceBean)buttonSBA.getValue();

      String buttonName = buttonSB.getName();
      SourceBean conditionsSB = (SourceBean) buttonSB.getAttribute("CONDITIONS");
      SourceBean row;
      try {
View Full Code Here


      }


      while (iter.hasNext()) {
        SourceBeanAttribute buttonSBA = (SourceBeanAttribute)iter.next();
        SourceBean buttonSB = (SourceBean)buttonSBA.getValue();

        String buttonName = buttonSB.getName();

        SourceBean conditionsSB = (SourceBean) buttonSB.getAttribute("CONDITIONS");
        SourceBean row;
View Full Code Here

      SourceBean captionsSB = (SourceBean) _layout.getAttribute("CAPTIONS");
      List captions = captionsSB.getContainedSourceBeanAttributes();
      Iterator iter = captions.iterator();
     
      while (iter.hasNext()) {
        SourceBeanAttribute captionSBA = (SourceBeanAttribute)iter.next();
        SourceBean captionSB = (SourceBean)captionSBA.getValue();
        List parameters = captionSB.getAttributeAsList("PARAMETER");
        HashMap paramsMap = getParametersMap(parameters, row);
        paramsMap.put("checkedElements",_lstElements);
        String img = (String)captionSB.getAttribute("image");
        String labelCode = (String)captionSB.getAttribute("label");
View Full Code Here

    StringBuffer htmlStream = new StringBuffer();

    Iterator iter = buttons.listIterator();
    while (iter.hasNext()) {
      SourceBeanAttribute buttonSBA = (SourceBeanAttribute)iter.next();
      SourceBean buttonSB = (SourceBean)buttonSBA.getValue();
     
      String name = (String) buttonSB.getAttribute("name");
      String img = (String) buttonSB.getAttribute("image");
      String labelCode = (String) buttonSB.getAttribute("label");     
      String label = msgBuilder.getMessage(labelCode, "messages", httpRequest);
View Full Code Here

    StringBuffer htmlStream = new StringBuffer();
    SourceBean buttonsSB = (SourceBean)_layout.getAttribute("BUTTONS");
    List buttons = buttonsSB.getContainedSourceBeanAttributes();
    Iterator iter = buttons.listIterator();
    while(iter.hasNext()) {
      SourceBeanAttribute buttonSBA = (SourceBeanAttribute)iter.next();
      SourceBean buttonSB = (SourceBean)buttonSBA.getValue();
      List parameters = buttonSB.getAttributeAsList("PARAMETER");
      HashMap paramsMap = getParametersMap(parameters, null);
      String img = (String)buttonSB.getAttribute("image");
      String labelCode = (String)buttonSB.getAttribute("label");
      String label = msgBuilder.getMessage(labelCode, "messages", httpRequest);
View Full Code Here

      ListIterator it = params.listIterator();

      while (it.hasNext()) {

    Object par = it.next();
    SourceBeanAttribute p = (SourceBeanAttribute) par;
    String parName = (String) p.getKey();
    logger.debug("got parName=" + parName);
    if (parName.equals("objlabel")) {
        objLabel = (String) request.getAttribute("objlabel");
        logger.debug("got objLabel from Request=" + objLabel);
    } else if (parName.equals("objid")) {
View Full Code Here

     */
    public void setParametersDescription(List<BIObjectParameter> BIObjectParameters, List<SourceBeanAttribute> attributes){
      Map<String,String> parameterNameDescriptionMap = new HashMap<String, String>();
      //we create a map: parameter name, parameter description
      for(int i=0; i<attributes.size(); i++){
        SourceBeanAttribute sba= attributes.get(i);
        //the name of parameter in the request with the description is parametername+  field_visible_description
        int descriptionPosition=sba.getKey().indexOf("field_visible_description");
        if(descriptionPosition>0){
          parameterNameDescriptionMap.put(sba.getKey().substring(0,descriptionPosition-1),(String)sba.getValue());
        }
      }
      for(int i=0; i<BIObjectParameters.size(); i++){
        String bobjName = BIObjectParameters.get(i).getParameterUrlName();
        String value = parameterNameDescriptionMap.get(bobjName);
View Full Code Here

    parameters=new HashMap<String, Object>();
    List parameterNames=serviceResponse.getContainedAttributes();

    for (Iterator iterator = parameterNames.iterator(); iterator.hasNext();) {
      SourceBeanAttribute sbA = (SourceBeanAttribute) iterator.next();
      String name = sbA.getKey();
      String value=sbA.getValue().toString();
      // if already contained create a List
      if(parameters.keySet().contains(name)){
        Object prevValue=parameters.get(name);
        if(prevValue instanceof Object[]){
          Object[] ooo=((Object[])prevValue);
View Full Code Here

        ListIterator it = params.listIterator();

        while (it.hasNext()) {

      Object par = it.next();
      SourceBeanAttribute p = (SourceBeanAttribute) par;
      String parName = (String) p.getKey();
      logger.debug("got parName=" + parName);
      if (parName.equals("OBJECT_ID")) {
          objId = (String) request.getAttribute("OBJECT_ID");
          logger.debug("got OBJECT_ID from Request=" + objId);
        }
View Full Code Here

      if ((rows != null) && (rows.size() != 0)) {
    SourceBean row = (SourceBean) rows.get(0);
    List rowAttrs = row.getContainedAttributes();
    Iterator rowAttrsIter = rowAttrs.iterator();
    while (rowAttrsIter.hasNext()) {
        SourceBeanAttribute rowAttr = (SourceBeanAttribute) rowAttrsIter.next();
        String rowKey = rowAttr.getKey();
       
        if (!visibleColNames.isEmpty()){
          Iterator iterateVisCol = visibleColNames.iterator();
          while(iterateVisCol.hasNext()){
            String visibleCol = (String)iterateVisCol.next();
View Full Code Here

TOP

Related Classes of it.eng.spago.base.SourceBeanAttribute

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.