Class AbstractLayout.ConstraintsPropertyChangeListener
java.lang.Object
com.globalmentor.beans.AbstractGenericPropertyChangeListener<Object>
io.guise.framework.component.layout.AbstractLayout.ConstraintsPropertyChangeListener
- All Implemented Interfaces:
com.globalmentor.beans.GenericPropertyChangeListener<Object>
,PropertyChangeListener
,EventListener
- Enclosing class:
- AbstractLayout<T extends Constraints>
protected class AbstractLayout.ConstraintsPropertyChangeListener
extends com.globalmentor.beans.AbstractGenericPropertyChangeListener<Object>
A property change listener that listens for changes in a constraint object's properties and fires a layout constraints property change event in response. A
LayoutConstraintsPropertyChangeEvent
will be fired for each component associated with the constraints for which a property changed. Events are only
fired for constraints of a type recognized by this layout.- Author:
- Garret Wilson
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
propertyChange
(com.globalmentor.beans.GenericPropertyChangeEvent<Object> propertyChangeEvent) protected <V> void
refirePropertyChange
(Component component, T constraints, String propertyName, V oldValue, V newValue) Refires a constraint property change event for the layout in the form of aLayoutConstraintsPropertyChangeEvent
.Methods inherited from class com.globalmentor.beans.AbstractGenericPropertyChangeListener
getGenericPropertyChangeEvent, propertyChange
-
Constructor Details
-
ConstraintsPropertyChangeListener
protected ConstraintsPropertyChangeListener()
-
-
Method Details
-
propertyChange
public void propertyChange(com.globalmentor.beans.GenericPropertyChangeEvent<Object> propertyChangeEvent) This implementation fires a
LayoutConstraintsPropertyChangeEvent
indicating the constraints and associated component. -
refirePropertyChange
protected <V> void refirePropertyChange(Component component, T constraints, String propertyName, V oldValue, V newValue) Refires a constraint property change event for the layout in the form of aLayoutConstraintsPropertyChangeEvent
.- Type Parameters:
V
- The type of the values.- Parameters:
component
- The component for which a constraint value changed.constraints
- The constraints for which a value changed.propertyName
- The name of the property being changed.oldValue
- The old property value.newValue
- The new property value.
-