Examples of TagDetails


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

    // 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) {
          getTrafficCountReport(tagDetails.getName());
        }
      });
      tagsTable.setWidget(i, 0, name);
    }
   
View Full Code Here

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

    // hack: give a visual clue that this table is being refreshed
    // normally, you don't want a rash, but here we do, so empty the table
    reportTable.removeAllRows();
    reportTable.clear();
   
    TagDetails tagDetails = new TagDetails();
    tagDetails.setName(tagName);
   
    selectedTag.setHTML("Selected tag: <b>"+tagName+"</b>");
   
    tagDetails.setRegion(currentStudyRegion);

    //TODO: put up a glass-modal dialog saying we are fetching the report
    trafficCountRecordService.getTrafficCountReport(tagDetails, new AsyncCallback<TrafficCountReport>() {
     
      @Override
View Full Code Here

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

    toggleAllCheckboxes.setValue(false);
  }
 
  private void saveTagDetails() {
   
    TagDetails tagDetails = new TagDetails();
    tagDetails.setName(name.getText());
    tagDetails.setDescription(description.getText());
    tagDetails.setId(currentTagDetailsId);
    tagDetails.setRegion(currentStudyRegion);
   
    if( ReservedWordTags.isReservedTag(tagDetails))
    {
      Window.alert("The tag name or description is reserved");
      return;
View Full Code Here

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

            checkboxes.clear();
            uncheckMasterCheckBox();
           
            for (int i = 0; i < tagDetailsList.size(); i++) {
            final int count = i;
        final TagDetails tagDetails = tagDetailsList.get(i);
       
        /*
         * Prevent reserved-word tags from displaying
         */
        if( ReservedWordTags.isReservedTag(tagDetails))
        {
          continue;
        }
       
        GWT.log(tagDetails.getName());
       
        CheckBox cb = new CheckBox();
        cb.setFormValue(tagDetails.getId()); //store the id in the checkbox value
        checkboxes.add(cb); // keep track for selecting all|none to delete
        cb.setStyleName(style.checkbox());
       
        // if a checkbox is checked, deselect the master checkbox
        cb.addClickHandler(new ClickHandler() {
          @Override
          public void onClick(ClickEvent event) {
            uncheckMasterCheckBox();
          }
        });
       
        Label name = new Label(tagDetails.getName());
        name.setStyleName(style.tagList());
        name.addStyleName(style.clickable());
        name.addClickHandler(new ClickHandler() {
          @Override
          public void onClick(ClickEvent event) {
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) {
          GWT.log("TAG DETAILS after click=" + tagDetails);
View Full Code Here

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

    if( currentDefaultFlow != null)
    {
      defaultFlow.setId( currentDefaultFlow.getId());
    }
   
    TagDetails tagDetails = new TagDetails();
    if( currentTagDetails != null) // should never be null, because we just clicked on a tag to load the config
    {
      tagDetails.setId(currentTagDetails.getId());
    }
    GWT.log("TAG DETAILS just id for saving flow:" + tagDetails);
   
    // get the study region id too (but just the id)
    StudyRegion region = new StudyRegion();
    region.setId(currentStudyRegion.getId());
    tagDetails.setRegion(region);
    defaultFlow.setTagDetails(tagDetails);
   
    defaultFlow.setW2Weekday(weekdayW2.getValue());
    defaultFlow.setW2Saturday(saturdayW2.getValue());
    defaultFlow.setW2SundayHoliday(sundayHolidayW2.getValue());
View Full Code Here

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

          String id = r.getString(1);
            String name = r.getString(2);
            String description = r.getString(3);
            String regionId = r.getString(4);
           
            TagDetails tagDetails = new TagDetails();
            tagDetails.setId(id);
            tagDetails.setName(name);
            tagDetails.setDescription(description);
           
            tagDetails.setRegion(region);
           
            tagDetailsList.add(tagDetails);
      }
      connection.close(); // returns connection to the pool
    }
View Full Code Here

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

   
    int lastSpeedBin = getLastSpeedBin();
    logger.debug("lastSpeedBin=" + lastSpeedBin);
   
    for (Iterator iterator = tagDetailsList.iterator(); iterator.hasNext();) {
      TagDetails tagDetails = (TagDetails) iterator.next();
     
      // we have an ID
      String tagId = tagDetails.getId();
     
      // loop on day types
      for (Iterator dayTypeIterator = dayTypes.iterator(); dayTypeIterator.hasNext();) {
       
        String dayType = (String) dayTypeIterator.next();
View Full Code Here

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

   
    int hourBin = 0;
    int speedBin = 0;
   
    for (Iterator iterator = tagDetailsList.iterator(); iterator.hasNext();) {
      TagDetails tagDetails = (TagDetails) iterator.next();
     
      // we have an ID
      String tagId = tagDetails.getId();
     
      // loop on day types
      for (Iterator dayTypeIterator = dayTypes.iterator(); dayTypeIterator.hasNext();) {
       
        String dayType = (String) dayTypeIterator.next();
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.