whole_func_string: function _setDateToScrollWheels(date) {
          for (var i = 0; i < this.scrollWheels.length; i++) {
              var scrollWheel = this.scrollWheels[i];
              var component = scrollWheel.component;
              var item = scrollWheel.scrollController.getFirstVisibleItem();
              var viewSequence = item ? item.viewSequence : scrollWheel.viewSequence;
              if (viewSequence) {
                  var renderNode = viewSequence.get();
                  var currentValue = component.getComponent(renderNode.date);
                  var destValue = component.getComponent(date);
  
                  // Determine the direction to scroll to
                  var steps = 0;
                  if (currentValue !== destValue) {
                      steps = destValue - currentValue;
                      // when loop is enables, check whether there is a faster path
                      if (component.loop) {
                          var revSteps = (steps < 0) ? (steps + component.upperBound) : (steps - component.upperBound);
                          if (Math.abs(revSteps) < Math.abs(steps)) {
                              steps = revSteps;
                          }
                      }
                  }
  
                  // Scroll to the item
                  if (!steps) {
                      scrollWheel.scrollController.goToRenderNode(renderNode);
                  }
                  else {
                      while (currentValue !== destValue) {
                          viewSequence = (steps > 0) ? viewSequence.getNext() : viewSequence.getPrevious();
                          renderNode = viewSequence ? viewSequence.get() : undefined;
                          if (!renderNode) {
                              break;
                          }
                          currentValue = component.getComponent(renderNode.date);
                          if (steps > 0) {
                              scrollWheel.scrollController.goToNextPage();
                          }
                          else {
                              scrollWheel.scrollController.goToPreviousPage();
                          }
                      }
                  }
              }
          }
      }
func_code_string: function _setDateToScrollWheels(date) {
          for (var i = 0; i < this.scrollWheels.length; i++) {
              var scrollWheel = this.scrollWheels[i];
              var component = scrollWheel.component;
              var item = scrollWheel.scrollController.getFirstVisibleItem();
              var viewSequence = item ? item.viewSequence : scrollWheel.viewSequence;
              if (viewSequence) {
                  var renderNode = viewSequence.get();
                  var currentValue = component.getComponent(renderNode.date);
                  var destValue = component.getComponent(date);
  
                  // Determine the direction to scroll to
                  var steps = 0;
                  if (currentValue !== destValue) {
                      steps = destValue - currentValue;
                      // when loop is enables, check whether there is a faster path
                      if (component.loop) {
                          var revSteps = (steps < 0) ? (steps + component.upperBound) : (steps - component.upperBound);
                          if (Math.abs(revSteps) < Math.abs(steps)) {
                              steps = revSteps;
                          }
                      }
                  }
  
                  // Scroll to the item
                  if (!steps) {
                      scrollWheel.scrollController.goToRenderNode(renderNode);
                  }
                  else {
                      while (currentValue !== destValue) {
                          viewSequence = (steps > 0) ? viewSequence.getNext() : viewSequence.getPrevious();
                          renderNode = viewSequence ? viewSequence.get() : undefined;
                          if (!renderNode) {
                              break;
                          }
                          currentValue = component.getComponent(renderNode.date);
                          if (steps > 0) {
                              scrollWheel.scrollController.goToNextPage();
                          }
                          else {
                              scrollWheel.scrollController.goToPreviousPage();
                          }
                      }
                  }
              }
          }
      }
func_documentation_string: Selects the given date into the scrollwheels (causes scrolling)