public class TranslationHandle extends ElementDetailHandle
TranslationTable| 限定符和类型 | 字段和说明 |
|---|---|
protected org.eclipse.birt.report.model.elements.Translation |
translation
The translation message.
|
elementHandle| 构造器和说明 |
|---|
TranslationHandle(ModuleHandle moduleHandle,
org.eclipse.birt.report.model.elements.Translation trans)
Constructs a handle for a translation message.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getLocale()
Returns the locale of the translation message.
|
java.lang.String |
getResourceKey()
Returns the resource key of the translation.
|
java.lang.String |
getText()
Returns translated text for the translation, the text defined for the
locale.
|
void |
setLocale(java.lang.String newLocale)
Sets the locale of the translation message.
|
void |
setText(java.lang.String text)
Sets the translated text for the translation message.
|
getDesign, getElement, getElementHandle, getModuleprotected org.eclipse.birt.report.model.elements.Translation translation
public TranslationHandle(ModuleHandle moduleHandle, org.eclipse.birt.report.model.elements.Translation trans)
moduleHandle - a handle to a moduletrans - the translation instance to be handled.public java.lang.String getResourceKey()
public void setLocale(java.lang.String newLocale)
throws CustomMsgException
newLocale - new locale of the translationCustomMsgException - if the translation message is not found in the design.public java.lang.String getLocale()
public void setText(java.lang.String text)
throws CustomMsgException
text - translated text for the locale.CustomMsgException - if the translation message is not found in the design.public java.lang.String getText()
Copyright © 2008 Actuate Corp. All rights reserved.