Interface LayoutFactory.BasicPropertyAdaptSupport.IRemoveAsListenerFromComponentCondition
-
- All Known Implementing Classes:
LayoutFactory.BasicPropertyAdaptSupport.RemoveAsListenerFromComponentIfTraceIsDropped,LayoutFactory.BasicPropertyAdaptSupport.RemoveAsListenerFromComponentNever
- Enclosing class:
- LayoutFactory.BasicPropertyAdaptSupport
public static interface LayoutFactory.BasicPropertyAdaptSupport.IRemoveAsListenerFromComponentConditionInterface to handle the removal of theas a property change event listener. It decides which property change events of the component should be able to control removal from it as a property change listener and especially if the property change event sent qualifies for removal.LayoutFactory.BasicPropertyAdaptSupportThis is needed to avoid a memory- and performance leak due to remaining listeners in the components listened to.
- Author:
- Achim Westermann
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<java.lang.String>getPropertyChangePropertiesToListenForRemovalOn()Property change properties sent by the component that will cause instances of this class to remove themselves as a property change listener from the component listened to.booleanisRemoveMeAsListenerComponentEvent(java.beans.PropertyChangeEvent event)Returns true if the callingshould return itself as a listener from theLayoutFactory.BasicPropertyAdaptSupportit listens to.Component
-
-
-
Method Detail
-
isRemoveMeAsListenerComponentEvent
boolean isRemoveMeAsListenerComponentEvent(java.beans.PropertyChangeEvent event)
Returns true if the callingshould return itself as a listener from theLayoutFactory.BasicPropertyAdaptSupportit listens to.Component- Parameters:
event- the event received by thesent from the component listened to.LayoutFactory.BasicPropertyAdaptSupport- Returns:
- true if the calling
should return itself as a listener from theLayoutFactory.BasicPropertyAdaptSupportit listens to.Component
-
getPropertyChangePropertiesToListenForRemovalOn
java.util.Set<java.lang.String> getPropertyChangePropertiesToListenForRemovalOn()
Property change properties sent by the component that will cause instances of this class to remove themselves as a property change listener from the component listened to.- Returns:
- property change properties sent by the component that will cause instances of this class to remove themselves as a property change listener from the component listened to.
-
-