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
LabelHandle handle = (LabelHandle) designHandle
				.findElement( "bodyLabel1" ); 
		
		StyleHandle styleHandle = handle.getStyle( );
		
		assertTrue( styleHandle.getBooleanProperty( Style.CAN_SHRINK_PROP ) );
		DimensionHandle dimensionHandle = handle
				.getDimensionProperty( Label.X_PROP );
		assertNotNull( dimensionHandle );
		assertEquals( "1mm", dimensionHandle.getStringValue( ) ); 
		handle.setStringProperty( Label.X_PROP, "11mm" ); 
		assertEquals( "11mm", dimensionHandle.getStringValue( ) ); 
		handle.setStringProperty( Label.X_PROP, "12.3pc" ); 
		assertEquals( "12.3pc", dimensionHandle.getStringValue( ) ); 
		ColorHandle colorHandle = styleHandle
				.getColorProperty( Style.COLOR_PROP );
		assertNotNull( colorHandle );
		assertEquals( "red", colorHandle.getCssValue( ) ); 
		
		DataSetHandle dataSethandle = designHandle.findDataSet( "firstDataSet" ); 
		DesignElementHandle elementHandle = dataSethandle
				.getElementProperty( SimpleDataSet.DATA_SOURCE_PROP );
		assertEquals( "myDataSource", elementHandle.getName( ) ); 
		
		FactoryPropertyHandle factoryHandle = styleHandle
				.getFactoryPropertyHandle( Style.CAN_SHRINK_PROP );
		assertNull( factoryHandle );
		factoryHandle = styleHandle
				.getFactoryPropertyHandle( Style.MASTER_PAGE_PROP );
		assertNull( factoryHandle );