code: public void setFilter(Filter filter)
      {
          if (this.filter == null)
          {
              this.filter = new FilterList();
          }
          if (filter != null)
          {
              this.filter.addFilter(filter);
          }
      }
docs: Sets the filter.
  
  @param filter
  the new filter