Class RadianceTabbedPaneUI.TabbedContainerListener
java.lang.Object
java.awt.event.ContainerAdapter
org.pushingpixels.radiance.theming.internal.ui.RadianceTabbedPaneUI.TabbedContainerListener
- All Implemented Interfaces:
ContainerListener
,EventListener
- Enclosing class:
RadianceTabbedPaneUI
Tracks changes to the tabbed pane contents. Each tab component is tracked for changes on the
RadianceSynapse.CONTENTS_MODIFIED
property.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map
<Component, List<PropertyChangeListener>> Property change listeners on the tab components. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Creates a new container listener. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
private void
Tracks all existing tab component.private void
Tracks changes in a single tab component.
-
Field Details
-
listeners
Property change listeners on the tab components. Fixes defect 135 - memory leaks on tabbed panes.
-
-
Constructor Details
-
TabbedContainerListener
private TabbedContainerListener()Creates a new container listener.
-
-
Method Details
-
trackExistingTabs
private void trackExistingTabs()Tracks all existing tab component. -
trackTab
Tracks changes in a single tab component.- Parameters:
tabComponent
- Tab component.
-
componentAdded
- Specified by:
componentAdded
in interfaceContainerListener
- Overrides:
componentAdded
in classContainerAdapter
-
componentRemoved
- Specified by:
componentRemoved
in interfaceContainerListener
- Overrides:
componentRemoved
in classContainerAdapter
-