Package org.pentaho.reporting.engine.classic.core.metadata

Examples of org.pentaho.reporting.engine.classic.core.metadata.ElementMetaData


    ClassicEngineBoot.getInstance().start();
    final ElementMetaData[] elementMetaDatas = ElementTypeRegistry.getInstance().getAllElementTypes();
    for (int i = 0; i < elementMetaDatas.length; i++)
    {
      final ElementMetaData elementMetaData = elementMetaDatas[i];
      final StyleMetaData[] styleMetaDatas = elementMetaData.getStyleDescriptions();
      for (int j = 0; j < styleMetaDatas.length; j++)
      {
        final StyleMetaData styleMetaData = styleMetaDatas[j];
        styles.put(styleMetaData.getName(), styleMetaData);
      }
View Full Code Here


      SwingUtilities.invokeAndWait(new UpdateStatusTask("Starting  .."));// NON-NLS
      SwingUtilities.invokeAndWait(new CreateReportDesignerFrame(files));
      SwingUtilities.invokeAndWait(new VersionCheckerTask());

      final ElementMetaData data = ElementTypeRegistry.getInstance().getElementType("page-header");// NON-NLS
      final AttributeMetaData[] datas = data.getAttributeDescriptions();
      final int x = datas.length; // ensure that there is some metadata.
    }
    catch (Throwable t)
    {
      if (splashScreen != null)
View Full Code Here

      Arrays.sort(datas, new GroupedMetaDataComparator());
      Object grouping = null;
      boolean firstElement = true;
      for (int i = 0; i < datas.length; i++)
      {
        final ElementMetaData data = datas[i];
        if (data.isHidden())
        {
          continue;
        }
       
        final String currentGrouping = data.getGrouping(Locale.getDefault());
        if (firstElement == false)
        {
          if (ObjectUtilities.equal(currentGrouping, grouping) == false)
          {
            grouping = currentGrouping;
View Full Code Here

    Arrays.sort(datas, new GroupedMetaDataComparator());
    Object grouping = null;
    boolean firstElement = true;
    for (int i = 0; i < datas.length; i++)
    {
      final ElementMetaData data = datas[i];
      if (data.isHidden())
      {
        continue;
      }
      final String currentGrouping = data.getGrouping(Locale.getDefault());
      if (firstElement == false)
      {
        if (ObjectUtilities.equal(currentGrouping, grouping) == false)
        {
          grouping = currentGrouping;
          morphMenu.addSeparator();
        }
      }
      else
      {
        grouping = currentGrouping;
        firstElement = false;
      }

      try
      {
        final MorphAction action = new MorphAction(data.create());
        action.setReportDesignerContext(context);
        morphMenu.add(new JMenuItem(action));
      }
      catch (InstantiationException e)
      {
View Full Code Here

    Arrays.sort(datas, new GroupedMetaDataComparator());
    Object grouping = null;
    boolean firstElement = true;
    for (int i = 0; i < datas.length; i++)
    {
      final ElementMetaData data = datas[i];
      if (data.isHidden())
      {
        continue;
      }
      if (WorkspaceSettings.getInstance().isShowExpertItems() == false && data.isExpert())
      {
        continue;
      }
      if (WorkspaceSettings.getInstance().isShowDeprecatedItems() == false && data.isDeprecated())
      {
        continue;
      }

      final String currentGrouping = data.getGrouping(Locale.getDefault());
      if (firstElement == false)
      {
        if (ObjectUtilities.equal(currentGrouping, grouping) == false)
        {
          grouping = currentGrouping;
View Full Code Here

    Arrays.sort(datas, new GroupedMetaDataComparator());
    Object grouping = null;
    boolean firstElement = true;
    for (int i = 0; i < datas.length; i++)
    {
      final ElementMetaData data = datas[i];
      if (data.isHidden())
      {
        continue;
      }
      if (WorkspaceSettings.getInstance().isShowExpertItems() == false && data.isExpert())
      {
        continue;
      }
      if (WorkspaceSettings.getInstance().isShowDeprecatedItems() == false && data.isDeprecated())
      {
        continue;
      }
      if (WorkspaceSettings.getInstance().isExperimentalFeaturesVisible() == false && data.isExperimental())
      {
        continue;
      }


      final String currentGrouping = data.getGrouping(Locale.getDefault());
      if (firstElement == false)
      {
        if (ObjectUtilities.equal(currentGrouping, grouping) == false)
        {
          grouping = currentGrouping;
View Full Code Here

      final ArrayList<UndoEntry> undos = new ArrayList<UndoEntry>();
      for (int i = 0; i < visualElements.length; i++)
      {
        final Element element = visualElements[i];
        final ElementMetaData metaData = element.getMetaData();
        final ElementStyleSheet elementStyleSheet = element.getStyle();

        final Object[] oldStyleData = new Object[StyleKey.getDefinedStyleKeyCount()];
        final Object[] newStyleData = new Object[StyleKey.getDefinedStyleKeyCount()];
        for (int j = 0; j < definedPropertyNamesArray.length; j++)
        {
          final StyleKey styleKey = definedPropertyNamesArray[j];
          if (styleKey == null)
          {
            continue;
          }
          final StyleMetaData styleDescr = metaData.getStyleDescription(styleKey);
          if (styleDescr == null)
          {
            // skip if the target element does not have that style ..
            continue;
          }
View Full Code Here

      Arrays.sort(datas, new GroupedMetaDataComparator());
      Object grouping = null;
      boolean firstElement = true;
      for (int i = 0; i < datas.length; i++)
      {
        final ElementMetaData data = datas[i];
        if (data.isHidden())
        {
          continue;
        }

        final String currentGrouping = data.getGrouping(Locale.getDefault());
        if (firstElement == false)
        {
          if (ObjectUtilities.equal(currentGrouping, grouping) == false)
          {
            grouping = currentGrouping;
            morphMenu.addSeparator();
          }
        }
        else
        {
          grouping = currentGrouping;
          firstElement = false;
        }

        try
        {
          final MorphAction action = new MorphAction(data.create());
          action.setReportDesignerContext(context);
          morphMenu.add(new JMenuItem(action));
        }
        catch (InstantiationException e)
        {
          UncaughtExceptionsModel.getInstance().addException(e);
        }
      }

    }

    final JMenu insertElementsMenu = context.getXulDesignerFrame().getMenuById("insert-elements-menu");// NON-NLS
    if (insertElementsMenu != null)
    {
      final ElementMetaData[] datas = ElementTypeRegistry.getInstance().getAllElementTypes();
      Arrays.sort(datas, new GroupedMetaDataComparator());
      Object grouping = null;
      boolean firstElement = true;
      for (int i = 0; i < datas.length; i++)
      {
        final ElementMetaData data = datas[i];
        if (data.isHidden())
        {
          continue;
        }

        final String currentGrouping = data.getGrouping(Locale.getDefault());
        if (firstElement == false)
        {
          if (ObjectUtilities.equal(currentGrouping, grouping) == false)
          {
            grouping = currentGrouping;
View Full Code Here

      Arrays.sort(datas, new GroupedMetaDataComparator());
      Object grouping = null;
      boolean firstElement = true;
      for (int i = 0; i < datas.length; i++)
      {
        final ElementMetaData data = datas[i];
        if (data.isHidden())
        {
          continue;
        }

        final String currentGrouping = data.getGrouping(Locale.getDefault());
        if (firstElement == false)
        {
          if (ObjectUtilities.equal(currentGrouping, grouping) == false)
          {
            grouping = currentGrouping;
View Full Code Here

    Arrays.sort(datas, new GroupedMetaDataComparator());
    Object grouping = null;
    boolean firstElement = true;
    for (int i = 0; i < datas.length; i++)
    {
      final ElementMetaData data = datas[i];
      if (data.isHidden())
      {
        continue;
      }

      final String currentGrouping = data.getGrouping(Locale.getDefault());
      if (firstElement == false)
      {
        if (ObjectUtilities.equal(currentGrouping, grouping) == false)
        {
          grouping = currentGrouping;
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.metadata.ElementMetaData

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.