Examples of TagDetails


Examples of org.worldbank.transport.tamt.shared.TagDetails

       
        // build a hash of tags for ease of use in report generation
        tagDetailsHash = new HashMap<String, TagDetails>();
        for (Iterator iterator = event.getTags().iterator(); iterator
            .hasNext();) {
          TagDetails tagDetails = (TagDetails) iterator.next();
          tagDetailsHash.put(tagDetails.getId(), tagDetails);
        }
       
        renderTags(event.getTags());
      }
    });
View Full Code Here

Examples of org.worldbank.transport.tamt.shared.TagDetails

    // clear out the old table
    tagsTable.removeAllRows();
    tagsTable.clear();
       
    for (int i = 0; i < tags.size(); i++) {
      final TagDetails tagDetails = tags.get(i);
     
      Label name = new Label(tagDetails.getName());
      name.addStyleName(style.clickable());
      name.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
          resetRightPane();
View Full Code Here

Examples of org.worldbank.transport.tamt.shared.TagDetails

      @Override
      public void onFetchedTags(FetchedTagsEvent event) {
        tags = event.getTags();
        for (Iterator iterator = tags.iterator(); iterator
            .hasNext();) {
          TagDetails td = (TagDetails) iterator.next();
          tagSuggestions.add(td.getName());
        }
      }
    });
  }
View Full Code Here

Examples of org.worldbank.transport.tamt.shared.TagDetails

      public void onFetchedTags(FetchedTagsEvent event) {
        // update the oracle with the tags
        tagSuggestions.clear();
        tagDetailsList = event.getTags();
        for (Iterator iterator = tagDetailsList.iterator(); iterator.hasNext();) {
          TagDetails td = (TagDetails) iterator.next();
          /*
           * Prevent reserved-word tags from displaying
           */
          if( ReservedWordTags.isReservedTag(td))
          {
            continue;
          }         
          tagSuggestions.add(td.getName());
        }
      }
    });
   
    eventBus.addHandler(CurrentStudyRegionUpdatedEvent.TYPE, new CurrentStudyRegionUpdatedEventHandler() {
View Full Code Here

Examples of org.worldbank.transport.tamt.shared.TagDetails

    /*
     * Take tag field from suggest box, look up the tagID
     */
    String selectedTag = tagSuggestBox.getText();
    for (Iterator iterator = tagDetailsList.iterator(); iterator.hasNext();) {
      TagDetails tagDetails = (TagDetails) iterator.next();
      if( tagDetails.getName().equals(selectedTag))
      {
        roadDetails.setTagId(tagDetails.getId());
        break;
      }
    }
    GWT.log("selectedTag("+selectedTag+"), tagId("+roadDetails.getTagId()+")");
   
View Full Code Here

Examples of org.worldbank.transport.tamt.shared.TagDetails

  public void setTagDetails(ArrayList<TagDetails> tagDetails) {
    this.tagDetailsList = tagDetails;
    GWT.log("Update the suggest box with the tag details names");
    for (Iterator iterator = tagDetails.iterator(); iterator.hasNext();) {
      TagDetails td = (TagDetails) iterator.next();
      tagSuggestions.add(td.getName());
    }
  }
View Full Code Here

Examples of org.worldbank.transport.tamt.shared.TagDetails

    // i don't think this is current
    //vertices.setText(currentPolyline.getRoadDetailsId());
   
    // need to find the tag name from tagDetailsList
    for (Iterator iterator = tagDetailsList.iterator(); iterator.hasNext();) {
      TagDetails tagDetails = (TagDetails) iterator.next();
      if(tagDetails.getId().equals(roadDetails.getTagId()))
      {
        tagSuggestBox.setText(tagDetails.getName());
        break;
      }
    }
   
    save.setText("Update");
View Full Code Here

Examples of org.worldbank.transport.tamt.shared.TagDetails

     
      // delete tag
      ArrayList<TagDetails> tags = tagDAO.getTagDetails(region);
      ArrayList<String> tagIds = new ArrayList<String>();
      for (Iterator iterator = tags.iterator(); iterator.hasNext();) {
        TagDetails tag = (TagDetails) iterator.next();
        tagIds.add(tag.getId());
      }
      logger.debug("Deleting tags for study region: " + studyRegionId);
      tagDAO.deleteTagDetails(tagIds);
     
View Full Code Here

Examples of org.worldbank.transport.tamt.shared.TagDetails

        studyRegion.setId( UUID.randomUUID().toString() );
        savedStudyRegion = dao.saveStudyRegion(studyRegion, geometry, mapCenter);
       
        // After we save a study region initially, we also want
        // to create 3 special reserved word tags (Issue 67)
        TagDetails resTag = new TagDetails();
        resTag.setName("Residential");
        resTag.setDescription("#RES"); // changing the reserved word from name to description
        resTag.setRegion(studyRegion);
        tagBO.saveTagDetails(resTag);
       
        TagDetails comTag = new TagDetails();
        comTag.setName("Commercial");
        comTag.setDescription("#COM"); // changing the reserved word from name to description
        comTag.setRegion(studyRegion);
        tagBO.saveTagDetails(comTag);
       
        TagDetails indTag = new TagDetails();
        indTag.setName("Industrial");
        indTag.setDescription("#IND"); // changing the reserved word from name to description
        indTag.setRegion(studyRegion);
        tagBO.saveTagDetails(indTag);
       
      } else {
        // use the existing id to update it
        savedStudyRegion = dao.updateStudyRegion(studyRegion, geometry, mapCenter);
View Full Code Here

Examples of org.worldbank.transport.tamt.shared.TagDetails

       
        // build a hash of tags for ease of use in report generation
        tagDetailsHash = new HashMap<String, TagDetails>();
        for (Iterator iterator = event.getTags().iterator(); iterator
            .hasNext();) {
          TagDetails tagDetails = (TagDetails) iterator.next();
          tagDetailsHash.put(tagDetails.getId(), tagDetails);
        }
       
        renderTags(event.getTags());
      }
    });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.