String pageType = getPageType( ); try { if ( DesignChoiceConstants.PAGE_SIZE_A4.equalsIgnoreCase( pageType ) ) return DimensionValue.parse( MasterPage.A4_HEIGHT ); else if ( DesignChoiceConstants.PAGE_SIZE_CUSTOM .equalsIgnoreCase( pageType ) ) return (DimensionValue) getProperty( MasterPage.HEIGHT_PROP ); else if ( DesignChoiceConstants.PAGE_SIZE_US_LEGAL .equalsIgnoreCase( pageType ) ) return DimensionValue.parse( MasterPage.US_LEGAL_HEIGHT ); else if ( DesignChoiceConstants.PAGE_SIZE_US_LETTER .equalsIgnoreCase( pageType ) ) return DimensionValue.parse( MasterPage.US_LETTER_HEIGHT ); else assert false; } catch ( PropertyValueException e ) { assert false; } return null;
return (DimensionValue) getProperty( MasterPage.HEIGHT_PROP );
	public DimensionValue getPageHeight( )	{		String pageType = getPageType( );		try		{			if ( DesignChoiceConstants.PAGE_SIZE_A4.equalsIgnoreCase( pageType ) )				return DimensionValue.parse( MasterPage.A4_HEIGHT );			else if ( DesignChoiceConstants.PAGE_SIZE_CUSTOM					.equalsIgnoreCase( pageType ) )				return (DimensionValue) getProperty( MasterPage.HEIGHT_PROP );			else if ( DesignChoiceConstants.PAGE_SIZE_US_LEGAL					.equalsIgnoreCase( pageType ) )				return DimensionValue.parse( MasterPage.US_LEGAL_HEIGHT );			else if ( DesignChoiceConstants.PAGE_SIZE_US_LETTER					.equalsIgnoreCase( pageType ) )				return DimensionValue.parse( MasterPage.US_LETTER_HEIGHT );			else				assert false;		}		catch ( PropertyValueException e )		{			assert false;		}		return null;	}