Class ReportDisplayPanel.ReportDataChangeListener

  • All Implemented Interfaces:
    java.beans.PropertyChangeListener, java.util.EventListener
    Enclosing class:
    ReportDisplayPanel

    public class ReportDisplayPanel.ReportDataChangeListener
    extends java.lang.Object
    implements java.beans.PropertyChangeListener
    This inner class of ReportDisplayPanel implements a PropertyChangeListener.

    It is non-static, so it has access to the ReportDisplayPanel's content, and uses that access to apply the changes made in the data model to the display of the content.

    • Constructor Detail

      • ReportDataChangeListener

        public ReportDataChangeListener()
    • Method Detail

      • propertyChange

        public void propertyChange​(java.beans.PropertyChangeEvent event)
        Update the surrounding ReportDisplayPanel instance based on changes to the underlying ReportDataModel.

        It is expected properties will come in with a name formatted to include both the Section that is being changed and the name of the particular data field being changed. The two names should be delimited with ReportDataModel.SECTION_FIELD_DELIM. The results of the events in this class may result in the structure of the report changing: such as new sections or fields being added, as well as updates to fields that already exist.

        Specified by:
        propertyChange in interface java.beans.PropertyChangeListener
        Parameters:
        event - A PropertyChangeEvent object describing the event source and the property that has changed.