private void init() { products = new ArrayList(); readFile(products); //read in the data file //create the product list prodList = new ProductList(lsProd); //Bridge to product VisList IBridger lbr = new SortBridge(prodList); //put the data into the product list lbr.addData(products); //create the grid VisList treeList = new TreeList(treeProd); //Bridge to the grid list IBridger tbr = new SortBridge(treeList); gridList = new GridList(grdProd); //Bridge to the grid list IBridger gbr = new ListBridge(gridList); //put the data into the grid display tbr.addData(products); gbr.addData(products); }
//----- public SortBridge(IVistList v) : base(v) { }
//------ public ListBridge(IVistList v) { vis = v; }