/* * Copyright (c) 2006,2007 Declarative Engineering LLC. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Declarative Engineering LLC * verson 1 which accompanies this distribution, and is available at * http://declarativeengineering.com/legal/DE_Developer_License_v1.txt */ package com.foundation.tcv.swt.server; import com.common.util.IIterator; import com.foundation.tcv.swt.server.cell.CellComponent; import com.foundation.view.IAbstractContainer; public interface ICellContainer { /** * Gets the row object metadata for the given object identifier. * @param item The collection item whose metadata is desired. * @return The row object for the given collection item. */ public RowObject getRowObject(Object item); /** * Gets the row object metadata for the given object identifier. * @param objectId The identifying number for the desired collection item's metadata. * @return The row object for the given identifer. */ public RowObject getRowObject(int objectId); /** * Gets an iterator over all row objects. * @return The iterator containing all the row objects. */ public IIterator getRowObjects(); /** * Gets the container for this cell container. * @return The container object for the cell container, which is often the same object. */ public IAbstractContainer getContainer(); /** * Adds a cell component as a child of this container. * @param component The cell component to be contained by this container. */ public void addCellComponent(CellComponent component); }//ICellContainer//