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
form = factory.newFreeForm( null );
		cell.addElement( form, Cell.CONTENT_SLOT );
		assertTrue( form.canContain( FreeForm.REPORT_ITEMS_SLOT, factory
				.newTableItem( null ) ) );
		assertTrue( form.canContain( FreeForm.REPORT_ITEMS_SLOT,
				ReportDesignConstants.TABLE_ITEM ) );
	}
	/**
	 * Tests canContain() method for duplicate group names in the listing
	 * element.
	 * 
	 * @throws SemanticException
	 */
	public void testCanContainGroupName( ) throws SemanticException
	{
		createDesign( );
		design = (ReportDesign) designHandle.getModule( );
		ElementFactory factory = new ElementFactory( design );
		TableHandle table = factory.newTableItem( "table", 1 ); 
		
		TableGroupHandle tableGroup = factory.newTableGroup( );
		tableGroup.setName( "Group1" ); 
		assertTrue( table.canContain( TableItem.GROUP_SLOT, tableGroup ) );
		table.getGroups( ).add( tableGroup );
		assertFalse( table.canContain( TableItem.GROUP_SLOT, tableGroup ) );
		tableGroup = factory.newTableGroup( );
		tableGroup.setName( "Group2" ); 
		assertTrue( table.canContain( TableItem.GROUP_SLOT, tableGroup ) );