38 lines
1.5 KiB
Java
38 lines
1.5 KiB
Java
|
|
/*
|
||
|
|
* 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.view.swt;
|
||
|
|
|
||
|
|
import org.eclipse.swt.widgets.Composite;
|
||
|
|
|
||
|
|
import com.common.util.IIterator;
|
||
|
|
import com.foundation.view.IAbstractContainer;
|
||
|
|
import com.foundation.view.swt.cell.CellComponent;
|
||
|
|
|
||
|
|
public interface ICellContainer {
|
||
|
|
/**
|
||
|
|
* Gets the composite that will contain the swt resources for the contained control.
|
||
|
|
* @param rowObject The row object whose composite is required. The composite may be the container for the cells, or a sub-container within the cell.
|
||
|
|
* @return The composite that the cell controls can be added to.
|
||
|
|
*/
|
||
|
|
public Composite getSwtComposite(Object rowObject);
|
||
|
|
/**
|
||
|
|
* Gets the composites that the cells use as the parent SWT component.
|
||
|
|
* @return The iterator over all active SWT composites that contain all children.
|
||
|
|
*/
|
||
|
|
public IIterator getSwtComposites();
|
||
|
|
/**
|
||
|
|
* Gets the container for the cell container.
|
||
|
|
* @return The container for the cells.
|
||
|
|
*/
|
||
|
|
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//
|