Package org.pentaho.reporting.engine.classic.core.util.beans

Examples of org.pentaho.reporting.engine.classic.core.util.beans.BeanUtility


    boolean changed = false;
    try
    {
      for (int i = 0; i < editors.length; i++)
      {
        final BeanUtility element = editors[i];
        final Object attribute = element.getProperty(metaData.getName());
        if ((ObjectUtilities.equal(attribute, value)) == false)
        {
          changed = true;
        }
      }

      if (changed)
      {
        final ReportRenderContext activeContext1 = getActiveContext();
        final ArrayList<UndoEntry> undos = new ArrayList<UndoEntry>();

        for (int i = 0; i < elements.length; i++)
        {
          final BeanUtility element = editors[i];
          final String name = metaData.getName();
          if (activeContext1 != null)
          {
            final Object oldValue = element.getProperty(name);
            undos.add(new ExpressionPropertyChangeUndoEntry(elements[i], name, oldValue, value));
          }
          element.setProperty(name, value);
        }
        if (activeContext1 != null)
        {
          final UndoManager undo = activeContext1.getUndo();
          undo.addChange(Messages.getString("ExpressionPropertiesTableModel.UndoName"),
View Full Code Here


    try
    {
      Object lastElement = null;
      if (elements.length > 0)
      {
        final BeanUtility element = editors[0];
        lastElement = element.getProperty(metaData.getName());
      }
      return lastElement;
    }
    catch (BeanException e)
    {
View Full Code Here

                                            final ExpressionMetaData expressionMetaData)
  {

    try
    {
      final BeanUtility utility = new BeanUtility(expression);
      final ExpressionPropertyMetaData[] propertyDescriptions = expressionMetaData.getPropertyDescriptions();
      for (int x = 0; x < propertyDescriptions.length; x++)
      {
        final ExpressionPropertyMetaData metaData = propertyDescriptions[x];
        final Object o = utility.getProperty(metaData.getName());
        if (o instanceof String == false)
        {
          continue;
        }
        final String fmtString = (String) o;
View Full Code Here

      return;
    }

    try
    {
      final BeanUtility utility = new BeanUtility(expression);
      final ExpressionPropertyMetaData[] propertyDescriptions = expressionMetaData.getPropertyDescriptions();
      for (int x = 0; x < propertyDescriptions.length; x++)
      {
        final ExpressionPropertyMetaData metaData = propertyDescriptions[x];
        final Object o = utility.getProperty(metaData.getName());
        if (o instanceof String == false)
        {
          continue;
        }
        final String fmtString = (String) o;
View Full Code Here

      return;
    }

    try
    {
      final BeanUtility utility = new BeanUtility(expression);
      final ExpressionMetaData data = ExpressionRegistry.getInstance().getExpressionMetaData(expressionName);
      final ExpressionPropertyMetaData[] datas = data.getPropertyDescriptions();
      for (int i = 0; i < datas.length; i++)
      {
        final ExpressionPropertyMetaData metaData = datas[i];
        final Object o = utility.getProperty(metaData.getName());
        if (o instanceof String == false)
        {
          continue;
        }
        final String fmtString = (String) o;
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.util.beans.BeanUtility

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.