Examples of notifyNodePropertiesChanged()


Examples of org.pentaho.reporting.engine.classic.core.Element.notifyNodePropertiesChanged()

          final String attributeName = attributeNames[j];
          element.setAttribute(attributeNamespace, attributeName,
              newAttributes.getAttribute(attributeNamespace, attributeName), false);
        }
      }
      element.notifyNodePropertiesChanged();
    }

    public UndoEntry merge(final UndoEntry newEntry)
    {
      return null;
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.Element.notifyNodePropertiesChanged()

    {
      final Element visualElement = visualElements[i];
      final ElementStyleSheet styleSheet = visualElement.getStyle();
      undos.add(StyleEditUndoEntry.createConditional(visualElement, TextStyleKeys.FONTSIZE, fontSize));
      styleSheet.setStyleProperty(TextStyleKeys.FONTSIZE, fontSize);
      visualElement.notifyNodePropertiesChanged();
    }
    getActiveContext().getUndo().addChange(ActionMessages.getString("ApplyFontSizeAction.UndoName"),
        new CompoundUndoEntry(undos.toArray(new UndoEntry[undos.size()])));
  }
}
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.Element.notifyNodePropertiesChanged()

    {
      final Element element = visualElements[i];
      final ElementStyleSheet styleSheet = element.getStyle();
      undos.add(StyleEditUndoEntry.createConditional(element, ElementStyleKeys.ALIGNMENT, ElementAlignment.RIGHT));
      styleSheet.setStyleProperty(ElementStyleKeys.ALIGNMENT, ElementAlignment.RIGHT);
      element.notifyNodePropertiesChanged();
    }
    getActiveContext().getUndo().addChange(ActionMessages.getString("TextAlignmentRightAction.UndoName"),
        new CompoundUndoEntry(undos.toArray(new UndoEntry[undos.size()])));
  }
}
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.Element.notifyNodePropertiesChanged()

          value = Boolean.TRUE;
        }
      }
      undos.add(StyleEditUndoEntry.createConditional(element, TextStyleKeys.ITALIC, value));
      styleSheet.setStyleProperty(TextStyleKeys.ITALIC, value);
      element.notifyNodePropertiesChanged();
    }
    getActiveContext().getUndo().addChange(ActionMessages.getString("ItalicsAction.UndoName"),
        new CompoundUndoEntry(undos.toArray(new UndoEntry[undos.size()])));

  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.Element.notifyNodePropertiesChanged()

    {
      final Element element = visualElements[i];
      final ElementStyleSheet styleSheet = element.getStyle();
      undos.add(StyleEditUndoEntry.createConditional(element, ElementStyleKeys.ALIGNMENT, ElementAlignment.CENTER));
      styleSheet.setStyleProperty(ElementStyleKeys.ALIGNMENT, ElementAlignment.CENTER);
      element.notifyNodePropertiesChanged();
    }
    getActiveContext().getUndo().addChange(ActionMessages.getString("TextAlignmentCenterAction.UndoName"),
        new CompoundUndoEntry(undos.toArray(new UndoEntry[undos.size()])));
  }
}
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.Element.notifyNodePropertiesChanged()

        newStyleData[i] = MassElementStyleUndoEntryBuilder.computeStyleChangeSet(visualElement);
        newExpressions[i] = ElementFormatUndoEntry.computeExpressions(visualElement);
        ids[i] = visualElement.getObjectID();

        // make sure everyone gets informed of any style change we made
        visualElement.notifyNodePropertiesChanged();
      }

      final ElementFormatUndoEntry undoEntry =
          new ElementFormatUndoEntry(ids, oldStyleData, newStyleData, oldExpressions, newExpressions);
      return undoEntry;
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.Element.notifyNodePropertiesChanged()

    {
      final Element visualElement = visualElements[i];
      final ElementStyleSheet styleSheet = visualElement.getStyle();
      undos.add(StyleEditUndoEntry.createConditional(visualElement, ElementStyleKeys.PAINT, color));
      styleSheet.setStyleProperty(ElementStyleKeys.PAINT, color);
      visualElement.notifyNodePropertiesChanged();
    }
    getActiveContext().getUndo().addChange(ActionMessages.getString("ApplyFontColorAction.UndoName"),
        new CompoundUndoEntry(undos.toArray(new UndoEntry[undos.size()])));
  }
}
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.Element.notifyNodePropertiesChanged()

    {
      final Element element = visualElements[i];
      final ElementStyleSheet styleSheet = element.getStyle();
      undos.add(StyleEditUndoEntry.createConditional(element, ElementStyleKeys.ALIGNMENT, ElementAlignment.LEFT));
      styleSheet.setStyleProperty(ElementStyleKeys.ALIGNMENT, ElementAlignment.LEFT);
      element.notifyNodePropertiesChanged();
    }
    getActiveContext().getUndo().addChange(ActionMessages.getString("TextAlignmentLeftAction.UndoName"),
        new CompoundUndoEntry(undos.toArray(new UndoEntry[undos.size()])));
  }
}
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.Element.notifyNodePropertiesChanged()

          value = Boolean.TRUE;
        }
      }
      undos.add(StyleEditUndoEntry.createConditional(element, TextStyleKeys.UNDERLINED, value));
      styleSheet.setStyleProperty(TextStyleKeys.UNDERLINED, value);
      element.notifyNodePropertiesChanged();
    }
    getActiveContext().getUndo().addChange(ActionMessages.getString("UnderlineAction.UndoName"),
        new CompoundUndoEntry(undos.toArray(new UndoEntry[undos.size()])));

  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.Element.notifyNodePropertiesChanged()

          value = Boolean.TRUE;
        }
      }
      undos.add(StyleEditUndoEntry.createConditional(element, TextStyleKeys.STRIKETHROUGH, value));
      styleSheet.setStyleProperty(TextStyleKeys.STRIKETHROUGH, value);
      element.notifyNodePropertiesChanged();
    }
    getActiveContext().getUndo().addChange(ActionMessages.getString("StrikethroughAction.UndoName"),
        new CompoundUndoEntry(undos.toArray(new UndoEntry[undos.size()])));
  }
}
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.