本文整理匯總了Java中org.eclipse.birt.report.model.api.ScalarParameterHandle.getPropertyHandle方法的典型用法代碼示例。如果您正苦於以下問題:Java ScalarParameterHandle.getPropertyHandle方法的具體用法?Java ScalarParameterHandle.getPropertyHandle怎麽用?Java ScalarParameterHandle.getPropertyHandle使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.eclipse.birt.report.model.api.ScalarParameterHandle
的用法示例。
在下文中一共展示了ScalarParameterHandle.getPropertyHandle方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: cvonvertFormatLocale
import org.eclipse.birt.report.model.api.ScalarParameterHandle; //導入方法依賴的package包/類
private ULocale cvonvertFormatLocale( ScalarParameterHandle paraHandle )
{
ULocale formatLocale = null;
Object formatValue = paraHandle.getProperty( IScalarParameterModel.FORMAT_PROP );
if ( formatValue instanceof FormatValue )
{
PropertyHandle propHandle = paraHandle.getPropertyHandle( IScalarParameterModel.FORMAT_PROP );
FormatValue formatValueToSet = (FormatValue) formatValue;
FormatValueHandle formatHandle = (FormatValueHandle) formatValueToSet.getHandle( propHandle );
formatLocale = formatHandle.getLocale( );
}
if ( formatLocale == null )
{
formatLocale = ULocale.getDefault( );
}
return formatLocale;
}
示例2: getLocale
import org.eclipse.birt.report.model.api.ScalarParameterHandle; //導入方法依賴的package包/類
/**
* Gets the <code>ULocale<code> according to the input property name.
*
* @param handle
* the handle.
* @param propName
* the property name
* @return the ulocale
*/
private ULocale getLocale( ScalarParameterHandle handle, String propName )
{
PropertyHandle propHandle = handle.getPropertyHandle( propName );
FormatValue formatValueToSet = (FormatValue) handle
.getProperty( propName );
FormatValueHandle formatHandle = (FormatValueHandle) formatValueToSet
.getHandle( propHandle );
return formatHandle.getLocale( );
}