org.pentaho.reportdesigner.lib.client.i18n.TranslationManager
The translation manager can be used to load translations using keys. Regular java property files are used as the underlying storage mechanism (see /res/Translations.properties).
The values in the property file use standard MessageFormat syntax to specify parameters.
...
Code Block |
---|
String text = TranslationManager.getInstance().getTranslation("R", "SaveReportCommand.Text"); int mnemonic = TranslationManager.getInstance().getMnemonic("R", "SaveReportCommand.Text"); int displayedMnemonicIndex = TranslationManager.getInstance().getDisplayedMnemonicIndex("R", "SaveReportCommand.Text"); |
org.pentaho.reportdesigner.lib.client.components.CenterPanelDialog
The CenterPanelDialog class is an extension to the regular JDialog. The method setCenterPanel
is used to set the actual content of the dialog (without buttons).
...
CenterPanelDialog#setModality
can be used to make the dialog only modal to the parent dialog or to the whole application. http://java.sun.com/javase/6/docs/api/java/awt/Dialog.html#setModalityType(java.awt.Dialog.ModalityType)CenterPanelDialog#setModalExclusionType
http://java.sun.com/javase/6/docs/api/java/awt/Window.html#setModalExclusionType(java.awt.Dialog.ModalExclusionType)
org.pentaho.reportdesigner.lib.client.util.UncaughtExcpetionsModel
All unexpected exceptions resulting in a possibly corrupted state of the ReportDesigner should be added to the UncaughtExcfeptionsModel. This usually leads in a red blinking warning message on the ReportDialog.
org.pentaho.reportdesigner.lib.client.util.FontUtils
FontUtils can be used to derive fonts. StyleContext is internally used to prevent a bug where Japanese characters of a derived font didn't render anymore. Additionally StyleContext uses a simple cache that might speed up the derive operation a little bit.
org.pentaho.reportdesigner.lib.client.util.IOUtil
IOUtil is used to close streams (always close streams accessing native resources).