Examples of BeanUtility


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

  {
    this.elements = elements.clone();
    this.editors = new BeanUtility[elements.length];
    for (int i = 0; i < elements.length; i++)
    {
      this.editors[i] = new BeanUtility(elements[i]);
    }

    final ExpressionPropertyMetaData[] metaData = selectCommonAttributes();
    if (tableStyle == TableStyle.ASCENDING)
    {
View Full Code Here

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 ReportDocumentContext 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(EditorExpressionsMessages.getString("ExpressionPropertiesTableModel.UndoName"),
View Full Code Here

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

    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

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

    {
      this.editors = null;
    }
    else
    {
      this.editors = new BeanUtility(elements);
    }

    final ReportPreProcessorPropertyMetaData[] metaData = selectCommonAttributes();
    if (tableStyle == TableStyle.ASCENDING)
    {
View Full Code Here

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

                                  final Object value)
  {
    boolean changed = false;
    try
    {
      final BeanUtility element = editors;
      final Object attribute = element.getProperty(metaData.getName());
      if ((ObjectUtilities.equal(attribute, value)) == false)
      {
        changed = true;
      }

      if (changed)
      {
        final String name = metaData.getName();
        element.setProperty(name, value);
      }
    }
    catch (BeanException e)
    {
      UncaughtExceptionsModel.getInstance().addException(e);
View Full Code Here

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

    {
      return null;
    }
    try
    {
      final BeanUtility element = this.editors;
      return element.getProperty(metaData.getName());
    }
    catch (BeanException e)
    {
      UncaughtExceptionsModel.getInstance().addException(e);
      return null;
View Full Code Here

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

  public void undo(final ReportDocumentContext renderContext)
  {
    try
    {
      final BeanUtility bu = new BeanUtility(element);
      bu.setProperty(name, oldPropertyValue);
      renderContext.getReportDefinition().fireModelLayoutChanged
                  (renderContext.getReportDefinition(), ReportModelEvent.NODE_PROPERTIES_CHANGED, element);
    }
    catch (final Exception e)
    {
View Full Code Here

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

  public void redo(final ReportDocumentContext renderContext)
  {
    try
    {
      final BeanUtility bu = new BeanUtility(element);
      bu.setProperty(name, newPropertyValue);
      renderContext.getReportDefinition().fireModelLayoutChanged
                  (renderContext.getReportDefinition(), ReportModelEvent.NODE_PROPERTIES_CHANGED, element);
    }
    catch (final Exception e)
    {
View Full Code Here

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

      return;
    }

    try
    {
      final BeanUtility bu = new BeanUtility(expression);
      final String[] propertyNames = bu.getProperties();
      if (propertyNames.length == 0)
      {
        final AttributeList properties = new AttributeList();
        if (expression.getName() != null)
        {
View Full Code Here

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

      return;
    }

    try
    {
      final BeanUtility bu = new BeanUtility(expression);
      final String[] propertyNames = bu.getProperties();
      if (propertyNames.length == 0)
      {
        final AttributeList properties = new AttributeList();
        properties.setAttribute(ExtParserModule.NAMESPACE, "style-key", styleKey.getName());
        properties.setAttribute(ExtParserModule.NAMESPACE, "class", expression.getClass().getName());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.