Package org.pentaho.reporting.engine.classic.extensions.drilldown

Examples of org.pentaho.reporting.engine.classic.extensions.drilldown.DrillDownProfile


    {
      final PropertyReadHandler readHandler = attributes.get(i);
      attrMap.put(readHandler.getName(), readHandler.getResult());
    }
    attrMap.put("group", group); // NON-NLS
    return new DrillDownProfile
        (name, bundleName, prefix, expert, preferred, hidden, deprecated, linkCustomizerType, attrMap);
  }
View Full Code Here


      final Resource resource = resourceManager.createDirectly(file, DrillDownProfileCollection.class);
      final DrillDownProfileCollection typeCollection = (DrillDownProfileCollection) resource.getResource();
      final DrillDownProfile[] types = typeCollection.getData();
      for (int i = 0; i < types.length; i++)
      {
        final DrillDownProfile metaData = types[i];
        if (metaData != null)
        {
          drillDownProfiles.addElement(metaData);
        }
      }
View Full Code Here

    final int retval = JOptionPane.showOptionDialog(this, "Select link customizer type", "Select Link Customizer Type",
        JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE, null,
        new Class[]{FormulaLinkCustomizer.class, PatternLinkCustomizer.class}, FormulaLinkCustomizer.class);
    if (retval == 0)
    {
      drillDownProfiles.addElement(new DrillDownProfile(FormulaLinkCustomizer.class));
    }
    else if (retval == 1)
    {
      drillDownProfiles.addElement(new DrillDownProfile(PatternLinkCustomizer.class));
    }
  }
View Full Code Here

      w.writeTag(DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE, "drilldown-profiles", rootList, XmlWriter.OPEN);

      final Object[] objects = drillDownProfiles.toArray();
      for (int i = 0; i < objects.length; i++)
      {
        final DrillDownProfile object = (DrillDownProfile) objects[i];

        final AttributeList profileAttrs = new AttributeList();
        profileAttrs.setAttribute(DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE, "name", object.getName());
        profileAttrs.setAttribute(DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE, "class", object.getLinkCustomizerType().getName());
        profileAttrs.setAttribute(DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE, "bundle-name", object.getBundleLocation());
        profileAttrs.setAttribute(DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE, "expert", String.valueOf(object.isExpert()));
        profileAttrs.setAttribute(DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE, "hidden", String.valueOf(object.isHidden()));
        profileAttrs.setAttribute(DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE, "deprecated", String.valueOf(object.isDeprecated()));
        profileAttrs.setAttribute(DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE, "preferred", String.valueOf(object.isPreferred()));

        w.writeTag(DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE, "drilldown-profile", profileAttrs, XmlWriter.OPEN);

        final String[] attrNames = object.getAttributes();
        for (int j = 0; j < attrNames.length; j++)
        {
          final String attrName = attrNames[j];
          final String attrValue = object.getAttribute(attrName);

          w.writeTag(DrillDownModule.DRILLDOWN_PROFILE_NAMESPACE, "attribute", "name", attrName, XmlWriter.OPEN);
          w.writeTextNormalized(attrValue, false);
          w.writeCloseTag();
        }
View Full Code Here

    /**
     * Invoked when an action occurs.
     */
    public void actionPerformed(final ActionEvent e)
    {
      final DrillDownProfile o = (DrillDownProfile) profileList.getSelectedValue();
      if (o == null)
      {
        return;
      }
      drillDownProfiles.removeElement(o);
View Full Code Here

    /**
     * Invoked when an action occurs.
     */
    public void actionPerformed(final ActionEvent e)
    {
      final DrillDownProfile o = (DrillDownProfile) profileList.getSelectedValue();
      if (o == null)
      {
        return;
      }

      final DrillDownProfile drillDownProfile = edit(o);
      if (drillDownProfile == o)
      {
        return;
      }

View Full Code Here

                                                  final boolean isSelected,
                                                  final boolean cellHasFocus)
    {
      if (value instanceof DrillDownProfile)
      {
        final DrillDownProfile profile = (DrillDownProfile) value;
        final String valueText = String.format("%s", profile.getName());
        return super.getListCellRendererComponent(list, valueText, index, isSelected, cellHasFocus);
      }
      return super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
    }
View Full Code Here

  protected abstract Class getType();

  public DrillDownProfile createFromUI()
  {
    return new DrillDownProfile(getProfileName(), getBundleName(), getProfileName() + ".",
        isExpert(), isPreferred(), isHidden(), isDeprecated(), getType(), getAttributes());
  }
View Full Code Here

                                                  final boolean isSelected,
                                                  final boolean cellHasFocus)
    {
      if (value instanceof DrillDownProfile)
      {
        final DrillDownProfile profile = (DrillDownProfile) value;
        final String valueText = String.format("%s", profile.getName());
        return super.getListCellRendererComponent(list, valueText, index, isSelected, cellHasFocus);
      }
      return super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
    }
View Full Code Here

    final DrillDownProfile[] drillDownProfileByGroup =
        DrillDownProfileMetaData.getInstance().getDrillDownProfileByGroup(getProfileName());
    for (int i = 0; i < drillDownProfileByGroup.length; i++)
    {
      final DrillDownProfile profile = drillDownProfileByGroup[i];
      final String profileName = profile.getName();
      final String extension = profile.getAttribute("extension");
      final boolean noParameter = profileName.endsWith("-no-parameter");
      final boolean local = profileName.startsWith("local-");
      if (StringUtils.isEmpty(extension))
      {
        pentahoPathWrapper.registerExtension(null, local, noParameter, profileName);
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.extensions.drilldown.DrillDownProfile

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.