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)
    { 
      updateActiveContext((ReportDocumentContext) evt.getOldValue(), (ReportDocumentContext) evt.getNewValue());
    } 
  } 
 
  private class SelectionHandler implements ReportSelectionListener 
  { 
    public void selectionAdded(final ReportSelectionEvent event)
    { 
      updateSelection(event.getModel());
    } 
 
    public void selectionRemoved(final ReportSelectionEvent event)
    { 
      updateSelection(event.getModel());
    }