import HTML.*;

/*
    This class serves a container for the SearchForm.
    It creates a SearchForm object and adds it to itself.
    It is derived from HTMLTableCell.
*/

public class SearchCell extends HTMLTableCell {

  // Method Name: SearchCell() Constructor
  // Purpose : This is where all of the processing is done
  // in this class.  It creates a HTMLHeading and a SearchForm
  // object and adds it to its own list of HTMLObjects.
  public SearchCell() {

    super(HTMLTableCell.DATA);

    // Create an HTMLHeading
    HTMLHeading heading = new HTMLHeading("Title Search",
      HTMLHeading.H4);
    heading.setAlignment(CENTER);
    addObject(heading);

    // Create a SerchForm
    addObject(new SearchForm());
  }
} 