Package org.pentaho.reporting.libraries.base.util

Examples of org.pentaho.reporting.libraries.base.util.ResourceBundleSupport


  }

  public boolean initialize(final SwingGuiContext context)
  {
    super.initialize(context);
    resources = new ResourceBundleSupport(context.getLocale(),
        SwingPreviewModule.BUNDLE_NAME, ObjectUtilities.getClassLoader(SwingPreviewModule.class));
    eventSource = context.getEventSource();
    eventSource.addPropertyChangeListener(updateListener);
    revalidate();
    return true;
View Full Code Here



  public boolean initialize(final SwingGuiContext context)
  {
    super.initialize(context);
    resources = new ResourceBundleSupport(context.getLocale(),
        SwingPreviewModule.BUNDLE_NAME, ObjectUtilities.getClassLoader(SwingPreviewModule.class));
    context.getEventSource().addPropertyChangeListener(updateListener);
    setEnabled(context.getEventSource().isPaginated());
    return true;
  }
View Full Code Here

   * This constructor sets the component's locale property to the value returned by
   * <code>JComponent.getDefaultLocale</code>.
   */
  public AbstractDemoFrame()
  {
    resources = new ResourceBundleSupport(Locale.getDefault(), RESOURCE_BASE,
        ObjectUtilities.getClassLoader(AbstractDemoFrame.class));
    previewAction = new PreviewAction();
    closeAction = new CloseAction();
    aboutAction = new AboutAction();
    statusBar = new JStatusBar();
View Full Code Here

   * @param e                the exception.
   */
  public static void showExceptionDialog
      (final Component parent, final String localisationBase, final Exception e)
  {
    final ResourceBundleSupport resources = new ResourceBundleSupport(Locale.getDefault(), RESOURCE_BASE,
            ObjectUtilities.getClassLoader(AbstractDemoFrame.class));
    final String title = resources.getString(localisationBase + ".title");
    final String format = resources.getString(localisationBase + ".message");
    final String message = MessageFormat.format
        (format, new Object[]{e.getLocalizedMessage()});

    ExceptionDialog.showExceptionDialog(parent, title, message, e);
  }
View Full Code Here

    if (this.context != context)
    {
      this.context = context;
      this.iconTheme = context.getIconTheme();
      this.configuration = new ExtendedConfigurationWrapper(context.getConfiguration());
      this.baseResources = new ResourceBundleSupport
          (context.getLocale(), SwingCommonModule.BUNDLE_NAME, ObjectUtilities.getClassLoader(SwingCommonModule.class));
    }
    return true;
  }
View Full Code Here

   * Creates the demo workspace.
   */
  public CSVUserInputPanel(final DemoController controler)
  {
    this.controller = controler;
    this.resources = new ResourceBundleSupport(Locale.getDefault(), RESOURCE_BASE,
        ObjectUtilities.getClassLoader(CSVUserInputPanel.class));
    this.formValidator = new CSVDialogValidator();

    setLayout(new BorderLayout());
    add(createDataArea(), BorderLayout.CENTER);
View Full Code Here

   * This constructor sets the component's locale property to the value returned by
   * <code>JComponent.getDefaultLocale</code>.
   */
  public AbstractDemoFrame()
  {
    resources = new ResourceBundleSupport(Locale.getDefault(), RESOURCE_BASE,
        ObjectUtilities.getClassLoader(AbstractDemoFrame.class));
    previewAction = new PreviewAction();
    closeAction = new CloseAction();
    aboutAction = new AboutAction();
    statusBar = new JStatusBar();
View Full Code Here

   * @param e                the exception.
   */
  public static void showExceptionDialog
      (final Component parent, final String localisationBase, final Exception e)
  {
    final ResourceBundleSupport resources = new ResourceBundleSupport(Locale.getDefault(), RESOURCE_BASE,
            ObjectUtilities.getClassLoader(AbstractDemoFrame.class));
    final String title = resources.getString(localisationBase + ".title");
    final String format = resources.getString(localisationBase + ".message");
    final String message = MessageFormat.format
        (format, new Object[]{e.getLocalizedMessage()});

    ExceptionDialog.showExceptionDialog(parent, title, message, e);
  }
View Full Code Here

  public ConfigEditor(final HierarchicalConfiguration configuration,
                      final AbstractBoot packageManager) throws ConfigTreeModelException
  {
    this.configuration = configuration;
    resources = new ResourceBundleSupport(getLocale(), ConfigEditorBoot.BUNDLE_NAME,
        ObjectUtilities.getClassLoader(ConfigEditor.class));
    editorPane = new ConfigEditorPane(packageManager, true);
    editorPane.updateConfiguration(configuration);

    setTitle(resources.getString("config-editor.title")); //$NON-NLS-1$
View Full Code Here

  }

  public boolean initialize(final SwingGuiContext context)
  {
    super.initialize(context);
    resources = new ResourceBundleSupport(context.getLocale(),
        SwingPreviewModule.BUNDLE_NAME, ObjectUtilities.getClassLoader(SwingPreviewModule.class));
    eventSource = context.getEventSource();
    eventSource.addPropertyChangeListener(updateListener);
    revalidate();
    return true;
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.base.util.ResourceBundleSupport

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.