Class RadianceTabbedPaneUI.TabbedContainerListener

  • All Implemented Interfaces:
    java.awt.event.ContainerListener, java.util.EventListener
    Enclosing class:
    RadianceTabbedPaneUI

    private final class RadianceTabbedPaneUI.TabbedContainerListener
    extends java.awt.event.ContainerAdapter
    Tracks changes to the tabbed pane contents. Each tab component is tracked for changes on the RadianceSynapse.CONTENTS_MODIFIED property.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.awt.Component,​java.util.List<java.beans.PropertyChangeListener>> listeners
      Property change listeners on the tab components.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TabbedContainerListener()
      Creates a new container listener.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void componentAdded​(java.awt.event.ContainerEvent e)  
      void componentRemoved​(java.awt.event.ContainerEvent e)  
      private void trackExistingTabs()
      Tracks all existing tab component.
      private void trackTab​(java.awt.Component tabComponent)
      Tracks changes in a single tab component.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • listeners

        private java.util.Map<java.awt.Component,​java.util.List<java.beans.PropertyChangeListener>> listeners
        Property change listeners on the tab components.

        Fixes defect 135 - memory leaks on tabbed panes.

    • Constructor Detail

      • TabbedContainerListener

        private TabbedContainerListener()
        Creates a new container listener.
    • Method Detail

      • trackExistingTabs

        private void trackExistingTabs()
        Tracks all existing tab component.
      • trackTab

        private void trackTab​(java.awt.Component tabComponent)
        Tracks changes in a single tab component.
        Parameters:
        tabComponent - Tab component.
      • componentAdded

        public void componentAdded​(java.awt.event.ContainerEvent e)
        Specified by:
        componentAdded in interface java.awt.event.ContainerListener
        Overrides:
        componentAdded in class java.awt.event.ContainerAdapter
      • componentRemoved

        public void componentRemoved​(java.awt.event.ContainerEvent e)
        Specified by:
        componentRemoved in interface java.awt.event.ContainerListener
        Overrides:
        componentRemoved in class java.awt.event.ContainerAdapter