Package org.pentaho.reporting.engine.classic.core.modules.gui.common

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.common.IconTheme


  public static IconTheme createIconTheme(final Configuration config)
  {
    final String themeClass = config.getConfigProperty(ICON_THEME_CONFIG_KEY);
    final Object maybeTheme = ObjectUtilities.loadAndInstantiate(themeClass, PreviewPane.class, IconTheme.class);
    final IconTheme iconTheme;
    if (maybeTheme != null)
    {
      iconTheme = (IconTheme) maybeTheme;
    }
    else
    {
      iconTheme = new DefaultIconTheme();
    }
    iconTheme.initialize(config);
    return iconTheme;
  }
View Full Code Here


    return iconTheme;
  }

  protected void setIconTheme(final IconTheme theme)
  {
    final IconTheme oldTheme = this.iconTheme;
    this.iconTheme = theme;
    firePropertyChange(PreviewPane.ICON_THEME_PROPERTY, oldTheme, theme);
  }
View Full Code Here

    return iconTheme;
  }

  public void setIconTheme(final IconTheme iconTheme)
  {
    final IconTheme oldTheme = this.iconTheme;
    this.iconTheme = iconTheme;
    firePropertyChange("iconTheme", oldTheme, iconTheme); //$NON-NLS-1$

    if (iconTheme == null)
    {
View Full Code Here

    /**
     * Default constructor.
     */
    public AboutAction()
    {
      final IconTheme iconTheme = new DefaultIconTheme();
      this.putValue(Action.NAME, resources.getString("action.about.name"));
      this.putValue(Action.SHORT_DESCRIPTION, resources.getString("action.about.description"));
      this.putValue(ActionDowngrade.MNEMONIC_KEY,
          resources.getMnemonic("action.about.mnemonic"));
      this.putValue(Action.SMALL_ICON, iconTheme.getSmallIcon(Locale.getDefault(), "action.about.small-icon"));
      this.putValue("ICON24", iconTheme.getLargeIcon(Locale.getDefault(), "action.about.icon"));
    }
View Full Code Here

    return iconTheme;
  }

  public void setIconTheme(final IconTheme iconTheme)
  {
    final IconTheme oldTheme = this.iconTheme;
    this.iconTheme = iconTheme;
    firePropertyChange("iconTheme", oldTheme, iconTheme); //$NON-NLS-1$

    if (iconTheme == null)
    {
View Full Code Here

    /**
     * Default constructor.
     */
    public AboutAction()
    {
      final IconTheme iconTheme = new DefaultIconTheme();
      this.putValue(Action.NAME, resources.getString("action.about.name"));
      this.putValue(Action.SHORT_DESCRIPTION, resources.getString("action.about.description"));
      this.putValue(Action.MNEMONIC_KEY,
          resources.getMnemonic("action.about.mnemonic"));
      this.putValue(Action.SMALL_ICON, iconTheme.getSmallIcon(Locale.getDefault(), "action.about.small-icon"));
      this.putValue("ICON24", iconTheme.getLargeIcon(Locale.getDefault(), "action.about.icon"));
    }
View Full Code Here

    return iconTheme;
  }

  protected void setIconTheme(final IconTheme theme)
  {
    final IconTheme oldTheme = this.iconTheme;
    this.iconTheme = theme;
    firePropertyChange(PreviewPane.ICON_THEME_PROPERTY, oldTheme, theme);
  }
View Full Code Here

  public static IconTheme createIconTheme(final Configuration config)
  {
    final String themeClass = config.getConfigProperty(ICON_THEME_CONFIG_KEY);
    final Object maybeTheme = ObjectUtilities.loadAndInstantiate(themeClass, PreviewPane.class, IconTheme.class);
    final IconTheme iconTheme;
    if (maybeTheme != null)
    {
      iconTheme = (IconTheme) maybeTheme;
    }
    else
    {
      iconTheme = new DefaultIconTheme();
    }
    iconTheme.initialize(config);
    return iconTheme;
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.modules.gui.common.IconTheme

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.