/*******************************************************************************
 * Copyright (c) 2004 Actuate Corporation.
 * 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:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/

package org.eclipse.birt.report.item.crosstab.ui.views.attributes.section;

import org.eclipse.birt.report.designer.internal.ui.views.attributes.section.CheckSection;
import org.eclipse.swt.widgets.Composite;

/**
 * @author Administrator
 *
 */
public class InnerCheckSection extends CheckSection {

	protected ContainerSection section;
	public InnerCheckSection(Composite parent, boolean isFormStyle) {
		super(parent, isFormStyle);
		// TODO Auto-generated constructor stub
	}

	public InnerCheckSection(ContainerSection section, boolean isFormStyle) {		
		super(null, isFormStyle);
		this.section = section;
	}
	
	public void createSection( )
	{
		if(parent == null && section != null)
		{
			parent = section.getContainerComposite();
		}
		super.createSection();
	}
	
}
