/******************************************************************************* * Copyright (c) 2011 Laurent CARON * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Laurent CARON (laurent.caron at gmail dot com) - Initial implementation and API *******************************************************************************/ package org.mihalis.opal.preferenceWindow; import org.eclipse.swt.widgets.Composite; import org.mihalis.opal.preferenceWindow.widgets.PWWidget; /** * Abstract class for "Containers" (row, group and tab) * */ public abstract class PWContainer { /** * Add a container to the current element * * @param element element to add * @return the container */ public abstract PWContainer add(final PWContainer element); /** * Add a widget to the current element * * @param widget widget to add * @return the container */ public abstract PWContainer add(final PWWidget widget); /** * Build the content of the container * * @param parent parent composite */ public abstract void build(final Composite parent); }