public class TranslationHandle extends ElementDetailHandle
TranslationTable
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.birt.report.model.elements.Translation |
translation
The translation message.
|
elementHandle
Constructor and Description |
---|
TranslationHandle(ModuleHandle moduleHandle,
org.eclipse.birt.report.model.elements.Translation trans)
Constructs a handle for a translation message.
|
Modifier and Type | Method and Description |
---|---|
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, getModule
protected 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.