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
ConstructorsModifierConstructorDescriptionprivateCreates a new container listener. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprivate voidTracks all existing tab component.private voidTracks 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:
componentAddedin interfaceContainerListener- Overrides:
componentAddedin classContainerAdapter
-
componentRemoved
- Specified by:
componentRemovedin interfaceContainerListener- Overrides:
componentRemovedin classContainerAdapter
-