Code example for PropertyChangeEvent

Methods: getNewValue, getOldValue

0
     * @param evt A PropertyChangeEvent object describing the event source and the property that has changed. 
     */ 
 
    public void propertyChange(final PropertyChangeEvent evt)
    { 
      final ReportRenderContext oldContext = (ReportRenderContext) evt.getOldValue();
      final ReportRenderContext activeContext = (ReportRenderContext) evt.getNewValue();
      updateActiveContext(oldContext, activeContext);
    } 
  } 
 
  private ActiveContextChangeHandler changeHandler;
 
  protected AbstractReportContextAction() 
  { 
    changeHandler = new ActiveContextChangeHandler();
  } 
 
  protected ReportDocumentContext getActiveContext() 
  { 
    if (getReportDesignerContext() == null)