assertTrue( groupHandle.isPropertyVisible( DesignElement.NAME_PROP ) ); assertTrue( groupHandle.isPropertyVisible( ReportItem.HEIGHT_PROP ) ); assertFalse( groupHandle .isPropertyVisible( ReportItem.PROPERTY_MASKS_PROP ) ); assertFalse( groupHandle.isPropertyVisible( ReportItem.DATA_SET_PROP ) ); assertFalse( groupHandle.isPropertyVisible( ReportItem.X_PROP ) ); assertFalse( groupHandle.isPropertyVisible( TextItem.CONTENT_PROP ) );
assertTrue( groupHandle.getPropertyHandle( DesignElementHandle.NAME_PROP ).isVisible( ) ); assertTrue( groupHandle.getPropertyHandle( ReportItem.HEIGHT_PROP ) .isVisible( ) ); assertFalse( groupHandle.getPropertyHandle( ReportItem.PROPERTY_MASKS_PROP ).isVisible( ) ); assertFalse( groupHandle.getPropertyHandle( ReportItem.DATA_SET_PROP ) .isVisible( ) ); assertFalse( groupHandle.getPropertyHandle( ReportItem.X_PROP ) .isVisible( ) );
	public void testPropertyVisibilities( ) throws SemanticException	{		// 1. String property type.		ArrayList elements = new ArrayList( );		// bookmark and toc are all invisible		DataItemHandle element1 = elemFactory.newDataItem( "data1" );//$NON-NLS-1$		TextItemHandle element2 = elemFactory.newTextItem( "text" ); //$NON-NLS-1$		LabelHandle element3 = elemFactory.newLabel( "label1" ); //$NON-NLS-1$		elements.add( element1 );		elements.add( element2 );		elements.add( element3 );		ReportDesignHandle designHandle = (ReportDesignHandle) design				.getHandle( design );		GroupElementHandle groupHandle = new SimpleGroupElementHandle(				designHandle, elements );		assertTrue( groupHandle.isPropertyVisible( DesignElement.NAME_PROP ) );		assertTrue( groupHandle.isPropertyVisible( ReportItem.HEIGHT_PROP ) );		assertFalse( groupHandle				.isPropertyVisible( ReportItem.PROPERTY_MASKS_PROP ) );		assertFalse( groupHandle.isPropertyVisible( ReportItem.DATA_SET_PROP ) );		assertFalse( groupHandle.isPropertyVisible( ReportItem.X_PROP ) );		assertFalse( groupHandle.isPropertyVisible( TextItem.CONTENT_PROP ) );	}