FormatCurrencyNumPattern fmtPattern = ( (FormatCurrencyNumPattern) categoryPatternMaps.get( categoryStr ) ); fmtPattern.setPattern( patternStr ); refreshCurrencySetting( fmtPattern );
refreshCurrencySetting( (FormatCurrencyNumPattern) fmtPattern );
	private void initiatePageLayout( String categoryStr, String patternStr )	{		if ( categoryStr == null )		{			typeChoicer.select( 0 );		}		else if ( DesignChoiceConstants.NUMBER_FORMAT_TYPE_GENERAL_NUMBER.equals( categoryStr ) )		{			typeChoicer.select( getIndexOfCategory( categoryStr ) );		}		else if ( DesignChoiceConstants.NUMBER_FORMAT_TYPE_CURRENCY.equals( categoryStr ) )		{			FormatCurrencyNumPattern fmtPattern = ( (FormatCurrencyNumPattern) categoryPatternMaps.get( categoryStr ) );			fmtPattern.setPattern( patternStr );			refreshCurrencySetting( fmtPattern );			typeChoicer.select( getIndexOfCategory( categoryStr ) );		}		else if ( DesignChoiceConstants.NUMBER_FORMAT_TYPE_FIXED.equals( categoryStr ) )		{			FormatFixedNumPattern fmtPattern = ( (FormatFixedNumPattern) categoryPatternMaps.get( categoryStr ) );			fmtPattern.setPattern( patternStr );			refreshFixedSetting( fmtPattern );			typeChoicer.select( getIndexOfCategory( categoryStr ) );		}		else if ( DesignChoiceConstants.NUMBER_FORMAT_TYPE_PERCENT.equals( categoryStr ) )		{			FormatPercentNumPattern fmtPattern = ( (FormatPercentNumPattern) categoryPatternMaps.get( categoryStr ) );			fmtPattern.setPattern( patternStr );			refreshPercentSetting( fmtPattern );			typeChoicer.select( getIndexOfCategory( categoryStr ) );		}		else if ( DesignChoiceConstants.NUMBER_FORMAT_TYPE_SCIENTIFIC.equals( categoryStr ) )		{			FormatScientificNumPattern fmtPattern = ( (FormatScientificNumPattern) categoryPatternMaps.get( categoryStr ) );			fmtPattern.setPattern( patternStr );			refreshScientificSetting( fmtPattern );			typeChoicer.select( getIndexOfCategory( categoryStr ) );		}		else if ( DesignChoiceConstants.NUMBER_FORMAT_TYPE_CUSTOM.equals( categoryStr ) )		{			FormatCustomNumPattern fmtPattern = ( (FormatCustomNumPattern) categoryPatternMaps.get( categoryStr ) );			fmtPattern.setPattern( patternStr );			refreshCustomSetting( fmtPattern );			typeChoicer.select( getIndexOfCategory( categoryStr ) );		}		else		{			// default for illegal input category.			typeChoicer.select( 0 );		}		return;	}