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));
    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


  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

  }

  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

    catch (CloneNotSupportedException e1)
    {
      ExportAction.logger.error("Internal error: Failed to clone the report."); //$NON-NLS-1$
      previewPane.setStatusType(StatusType.ERROR);

      final ResourceBundleSupport resourceBundleSupport = new ResourceBundleSupport
          (Locale.getDefault(), SwingPreviewModule.BUNDLE_NAME, ObjectUtilities.getClassLoader(ExportAction.class));

      previewPane.setStatusText(resourceBundleSupport.getString("ExportAction.Error"));
    }
  }
View Full Code Here

    {
      throw new NullPointerException();
    }
   
    masterReport = report;
    messages = new ResourceBundleSupport
        (Locale.getDefault(), SwingPreviewModule.BUNDLE_NAME,
            ObjectUtilities.getClassLoader(PreviewParametersDialog.class));
    confirmAction = new OkAction();

    setTitle(messages.getString("PreviewParametersDialog.Title"));
View Full Code Here

    name = ""; //$NON-NLS-1$
  }

  public void initialize(final SwingGuiContext context)
  {
    resources = new ResourceBundleSupport
        (context.getLocale(), resourceBase, ObjectUtilities.getClassLoader(ActionCategory.class));
  }
View Full Code Here

  /**
   * Constructs a new panel.
   */
  public SystemPropertiesPanel()
  {
    final ResourceBundleSupport bundleSupport = new ResourceBundleSupport(Locale.getDefault(),
        SwingPreviewModule.BUNDLE_NAME, ObjectUtilities.getClassLoader(SwingPreviewModule.class));

    setLayout(new BorderLayout());
    this.table = SystemPropertiesPanel.createSystemPropertiesTable();
    add(new JScrollPane(this.table));

    // Add a popup menu to copy to the clipboard...
    this.copyPopupMenu = new JPopupMenu();

    final String label = bundleSupport.getString("system-properties-panel.popup-menu.copy");
    final KeyStroke accelerator = bundleSupport.getKeyStroke("system-properties-panel.popup-menu.copy.accelerator");

    final JMenuItem copyMenuItem = new JMenuItem(label);
    copyMenuItem.setAccelerator(accelerator);
    copyMenuItem.getAccessibleContext().setAccessibleDescription(label);
    copyMenuItem.addActionListener(new CopyAction());
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.