Bug 164070 Support widows/orphans properties on text item
Support widows/orphans properties on block text item(label, text, data etc), About the definition of widows/orphans, please refer to CSS spec.
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/DesignElementHandleTest.java
DataSourceHandle dataSource = factory.newOdaDataSource( null, null );
		DataSetHandle dataSet = factory.newOdaDataSet( null, null );
		dataSet.setDataSource( dataSource.getName( ) );
		table.setDataSet( dataSet );
		designHandle.getDataSources( ).add( dataSource );
		designHandle.getDataSets( ).add( dataSet );
		
		assertTrue( table.canContain( TableItem.GROUP_SLOT, tableGroup ) );
		table.getGroups( ).add( tableGroup );
		
		assertFalse( table.canContain( TableItem.GROUP_SLOT, tableGroup ) );
		tableGroup = factory.newTableGroup( );
		tableGroup.setName( "Group1" ); 
		assertFalse( table.canContain( TableItem.GROUP_SLOT, tableGroup ) );
		
	}
	/**
	 * Tests the canContain().
	 * 
	 * @throws SemanticException
	 * 
	 */
	public void testCanContain( ) throws SemanticException
	{
		createDesign( );
		design = (ReportDesign) designHandle.getModule( );
		
		LabelHandle label = designHandle.getElementFactory( ).newLabel( null );
		label.setName( "newLabel" ); 
		assertFalse( designHandle.canContain( ReportDesign.PAGE_SLOT, label ) );